DateTimeFormat Example
Today's date and time are {ts '2026-08-02 16:05:20'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 02-Aug-2026 16:05:20
- 2026.08.02 AD 'P' 16:05:20 EDT
- Sun, Aug 2, '26
- 4:05 PM
- 04 oc16oc16' PM, Eastern Daylight Time
- 4:05 PM, EDT
- 02026.August.02 AD 04:05 PM
- Sun, 2 Aug 2026 16:05:20 -0400
- 260802200520+0000