DateTimeFormat Example
Today's date and time are {ts '2026-02-08 16:20:23'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 08-Feb-2026 16:20:23
- 2026.02.08 AD 'P' 16:20:23 EST
- Sun, Feb 8, '26
- 4:20 PM
- 04 oc942oc16' PM, Eastern Standard Time
- 4:20 PM, EST
- 02026.February.08 AD 04:20 PM
- Sun, 8 Feb 2026 16:20:23 -0500
- 260208212023+0000