DateTimeFormat Example
Today's date and time are {ts '2026-08-02 17:59:36'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 02-Aug-2026 17:59:36
- 2026.08.02 AD 'P' 17:59:36 EDT
- Sun, Aug 2, '26
- 5:59 PM
- 05 oc882oc17' PM, Eastern Daylight Time
- 5:59 PM, EDT
- 02026.August.02 AD 05:59 PM
- Sun, 2 Aug 2026 17:59:36 -0400
- 260802215936+0000