$formatDate
Formats a date provided as milliseconds, a string, or an ISO string into a specified format. You can find a detailed explanation of the formatting syntax here.
Usage: $formatDate[date;format]
- date: The date to format. This can be:
- Milliseconds (e.g.,
1678886400000) - A date string (e.g.,
1/1/2023) - An ISO string (e.g.,
2023-03-15T12:00:00Z) - Anything that JavaScript's
Dateobject can understand.
- Milliseconds (e.g.,
- format: (Optional) The desired output format. If omitted, the default format is used (
Sunday, 14 March 2021).
Example:
Date Input Options:
datestamp- Example:1615578797890(Milliseconds since the Unix epoch)ms- Example:315569267878790msstring date- Example:1/17/2021, 9:09:19 PMString in ISO- Example:2000-3-12T14:48:00.000Z
Format Options:
Here are some common formatting options:
Blank(default) - Example:Sunday, 14 March 2021LT- Time - Example:6:01 AMLTS- Time with seconds - Example:1:58:3 AML- Date - Example:1/10/2021LLL- Specified Date - Example:March 12 2020 4:02 AMLLLL- Specified Date with Day - Example:Friday, March 12 2021 4:02 AMdddd- Day - Example:FridayHH- Hour (24-hour format) - Example:15
Other Timezone
Date functions use the default UTC timezone. You can change this. Learn More