DateTimeFormat Example
Today's date and time are {ts '2026-09-07 05:18:40'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 07-Sep-2026 05:18:40
- 2026.09.07 AD 'A' 05:18:40 EDT
- Mon, Sep 7, '26
- 5:18 AM
- 05 oc321oc5' AM, Eastern Daylight Time
- 5:18 AM, EDT
- 02026.September.07 AD 05:18 AM
- Mon, 7 Sep 2026 05:18:40 -0400
- 260907091840+0000