DateTimeFormat Example
Today's date and time are {ts '2026-03-07 16:37:16'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 07-Mar-2026 16:37:16
- 2026.03.07 AD 'P' 16:37:16 EST
- Sat, Mar 7, '26
- 4:37 PM
- 04 oc860oc16' PM, Eastern Standard Time
- 4:37 PM, EST
- 02026.March.07 AD 04:37 PM
- Sat, 7 Mar 2026 16:37:16 -0500
- 260307213716+0000