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