DateTimeFormat Example
Today's date and time are {ts '2026-02-26 16:23:42'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 26-Feb-2026 16:23:42
- 2026.02.26 AD 'P' 16:23:42 EST
- Thu, Feb 26, '26
- 4:23 PM
- 04 oc607oc16' PM, Eastern Standard Time
- 4:23 PM, EST
- 02026.February.26 AD 04:23 PM
- Thu, 26 Feb 2026 16:23:42 -0500
- 260226212342+0000