DateTimeFormat Example
Today's date and time are {ts '2026-08-09 23:57:15'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 09-Aug-2026 23:57:15
- 2026.08.09 AD 'P' 23:57:15 EDT
- Sun, Aug 9, '26
- 11:57 PM
- 11 oc301oc23' PM, Eastern Daylight Time
- 11:57 PM, EDT
- 02026.August.09 AD 11:57 PM
- Sun, 9 Aug 2026 23:57:15 -0400
- 260810035715+0000