Get Date & Time

ISO 8601 :: The global standard


ASTER::Expression::General Functions::Get current Date & Time

Retrieve the current date and time in ISO 8601 format as a string.

  • Acquire the time based on the OS timezone settings.
  • Dynamically adapt to timezone changes during application runtime.

Parameter: Noone

ExStrTime( "ASTER" )
"2024-11-05T12:00-01:987Z"

The date format is “YYYY-MM-DD”, the time is prefixed with a “T” to form “Thh:mm:ss.sss”, and it ends with a time zone designator “Z”.

Using REGEX Exact Match, the following regular expression can be employed to capture “Year”, “Month”, “Day”, “Hour”, “Minute”, and “Second” as submatches:

"(.+)-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}).(\d{3})Z"