formatDate
Formats a date given in ISO-8601 format using the given formatter. The format can use a pattern specified in date-format-patterns
formatDate(date, pattern)
#
Parametersdate
: A date in ISO-8601 format such as2021-06-12T11:03:49.701Z
provided asstring
pattern
: A date formatter pattern
#
Returns- formatted date as
string
#
Exampleprint(formatDate(timestamp(), f))# prints, Jun-Sat-2021 11:13:53 776 AM