formatDate

Formats the date using a custom format string.
Accepts
Returns
Syntax
formatDate(date, format) date.formatDate(format)

The format string can contain the following text to represent parts of the date: YYYY for year, MM for month, DD for day, HH for hour, mm for minute.

formatDate(parseDate("2023-07-10T17:35"), "DD/MM/YYYY h:mma")
=
10/07/2023 5:35pm "10/07/2023 5:35pm"