Skip to main content
The table summarizes the datetime functions available in APL. Axiom supports the ISO 8601 format which is the standard format for representing dates and times in the Gregorian calendar. For more information, see Supported formats.

Format datetime values as strings

To display a datetime value as a formatted string, use tostring(). By default, tostring() returns the datetime in ISO 8601 format.
To truncate a datetime to a specific boundary before converting it, combine a startof* function with tostring(). For example, to display only the date portion:
To extract individual components such as year, month, or day, use datetime_part, getyear, getmonth, or dayofmonth.