DateTimeFormat Example
Today's date and time are {ts '2026-03-01 16:10:21'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 01-Mar-2026 16:10:21
- 2026.03.01 AD 'P' 16:10:21 EST
- Sun, Mar 1, '26
- 4:10 PM
- 04 oc271oc16' PM, Eastern Standard Time
- 4:10 PM, EST
- 02026.March.01 AD 04:10 PM
- Sun, 1 Mar 2026 16:10:21 -0500
- 260301211021+0000