DateTimeFormat Example
Today's date and time are {ts '2026-03-09 01:45:16'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 09-Mar-2026 01:45:16
- 2026.03.09 AD 'A' 01:45:16 EDT
- Mon, Mar 9, '26
- 1:45 AM
- 01 oc3oc1' AM, Eastern Daylight Time
- 1:45 AM, EDT
- 02026.March.09 AD 01:45 AM
- Mon, 9 Mar 2026 01:45:16 -0400
- 260309054516+0000