DateTimeFormat Example
Today's date and time are {ts '2026-03-02 16:30:05'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 02-Mar-2026 16:30:05
- 2026.03.02 AD 'P' 16:30:05 EST
- Mon, Mar 2, '26
- 4:30 PM
- 04 oc282oc16' PM, Eastern Standard Time
- 4:30 PM, EST
- 02026.March.02 AD 04:30 PM
- Mon, 2 Mar 2026 16:30:05 -0500
- 260302213005+0000