DateTimeFormat Example
Today's date and time are {ts '2026-10-12 17:51:16'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 12-Oct-2026 17:51:16
- 2026.10.12 AD 'P' 17:51:16 EDT
- Mon, Oct 12, '26
- 5:51 PM
- 05 oc964oc17' PM, Eastern Daylight Time
- 5:51 PM, EDT
- 02026.October.12 AD 05:51 PM
- Mon, 12 Oct 2026 17:51:16 -0400
- 261012215116+0000