The util.Datetime class / util.Datetime methods |
Formats a datetime value according to format specification.
util.Datetime.format( value DATETIME q1 TO q2, fmt STRING ) RETURNING res STRING
The util.Datetime.format() method formats a DATETIME value according to the format specification.
The format string must be a combination of place holders such as %Y, %m, %d, as described in Formatting DATETIME values.
If the source value is NULL the result will be NULL.
IMPORT util MAIN DISPLAY util.Datetime.format( CURRENT, "%Y-%m-%d %H:%M" ) END MAIN