DateTimeFormat Example
Today's date and time are {ts '2026-04-15 14:42:12'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 15-Apr-2026 14:42:12
- 2026.04.15 AD 'P' 14:42:12 EDT
- Wed, Apr 15, '26
- 2:42 PM
- 02 oc35oc14' PM, Eastern Daylight Time
- 2:42 PM, EDT
- 02026.April.15 AD 02:42 PM
- Wed, 15 Apr 2026 14:42:12 -0400
- 260415184212+0000