DateTimeFormat Example
Today's date and time are {ts '2026-05-17 23:22:33'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 17-May-2026 23:22:33
- 2026.05.17 AD 'P' 23:22:33 EDT
- Sun, May 17, '26
- 11:22 PM
- 11 oc875oc23' PM, Eastern Daylight Time
- 11:22 PM, EDT
- 02026.May.17 AD 11:22 PM
- Sun, 17 May 2026 23:22:33 -0400
- 260518032233+0000