DateTimeFormat Example
Today's date and time are {ts '2026-05-18 23:46:57'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 18-May-2026 23:46:57
- 2026.05.18 AD 'P' 23:46:57 EDT
- Mon, May 18, '26
- 11:46 PM
- 11 oc83oc23' PM, Eastern Daylight Time
- 11:46 PM, EDT
- 02026.May.18 AD 11:46 PM
- Mon, 18 May 2026 23:46:57 -0400
- 260519034657+0000