DateTimeFormat Example
Today's date and time are {ts '2026-03-30 14:48:50'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 30-Mar-2026 14:48:50
- 2026.03.30 AD 'P' 14:48:50 EDT
- Mon, Mar 30, '26
- 2:48 PM
- 02 oc676oc14' PM, Eastern Daylight Time
- 2:48 PM, EDT
- 02026.March.30 AD 02:48 PM
- Mon, 30 Mar 2026 14:48:50 -0400
- 260330184850+0000