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