DateTimeFormat Example
Today's date and time are {ts '2026-03-22 14:37:34'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 22-Mar-2026 14:37:34
- 2026.03.22 AD 'P' 14:37:34 EDT
- Sun, Mar 22, '26
- 2:37 PM
- 02 oc595oc14' PM, Eastern Daylight Time
- 2:37 PM, EDT
- 02026.March.22 AD 02:37 PM
- Sun, 22 Mar 2026 14:37:34 -0400
- 260322183734+0000