DateTimeFormat Example
Today's date and time are {ts '2026-08-12 12:57:17'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 12-Aug-2026 12:57:17
- 2026.08.12 AD 'P' 12:57:17 EDT
- Wed, Aug 12, '26
- 12:57 PM
- 12 oc322oc12' PM, Eastern Daylight Time
- 0:57 PM, EDT
- 02026.August.12 AD 12:57 PM
- Wed, 12 Aug 2026 12:57:17 -0400
- 260812165717+0000