DATETIME function
Converts date and time values, or a character string, into a DATETIME value.
Note: If any argument is the Unknown value (?
), the result is the Unknown value (?
).Syntax
date-exp
mtime-exp
string
A character expression whose value is a string containing a DATETIME. The date portion of the string must have the format specified by the DATE-FORMAT attribute. The time portion must be in a valid time format (HH:MM:SS, and so on).month
day
year
hours
minutes
seconds
milliseconds
ExampleFollowing is an example of using the DATETIME function:
The following statements result in the same DATETIME value:
See alsoADD-INTERVAL function, DATE function, DATE-FORMAT attribute, DATETIME-TZ function, DAY function, ETIME function, INTERVAL function, ISO-DATE function, MONTH function, MTIME function, NOW function, TIME function, TIMEZONE function, TODAY function, WEEKDAY function, YEAR function, YEAR-OFFSET attribute
OpenEdge Release 10.2B
|