DateTimeFormat Example
Today's date and time are {ts '2026-05-16 15:15:19'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 16-May-2026 15:15:19
- 2026.05.16 AD 'P' 15:15:19 EDT
- Sat, May 16, '26
- 3:15 PM
- 03 oc509oc15' PM, Eastern Daylight Time
- 3:15 PM, EDT
- 02026.May.16 AD 03:15 PM
- Sat, 16 May 2026 15:15:19 -0400
- 260516191519+0000