DateTimeFormat Example
Today's date and time are {ts '2026-02-15 16:26:48'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 15-Feb-2026 16:26:48
- 2026.02.15 AD 'P' 16:26:48 EST
- Sun, Feb 15, '26
- 4:26 PM
- 04 oc16oc16' PM, Eastern Standard Time
- 4:26 PM, EST
- 02026.February.15 AD 04:26 PM
- Sun, 15 Feb 2026 16:26:48 -0500
- 260215212648+0000