DateTimeFormat Example
Today's date and time are {ts '2026-02-21 16:37:22'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 21-Feb-2026 16:37:22
- 2026.02.21 AD 'P' 16:37:22 EST
- Sat, Feb 21, '26
- 4:37 PM
- 04 oc325oc16' PM, Eastern Standard Time
- 4:37 PM, EST
- 02026.February.21 AD 04:37 PM
- Sat, 21 Feb 2026 16:37:22 -0500
- 260221213722+0000