FORMAT

Scripting Formulas Time & Date

TIME.FORMAT

TIME.FORMAT(value, format)

Formats the datetime value according to the flags given in the string format. You can combine the flags to produce complex custom formats for dates. In the example below, %Y produces the year, %m produces the month, and %d produces the day. For a full list of available flags, see Formatting Dates.

// Produces a mm/dd/yyyy representation of the current date.
{{ TIME.FORMAT(current_time, "%m/%d/%Y") }}