DateTimeFormat Example
Today's date and time are {ts '2026-04-01 14:59:45'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 01-Apr-2026 14:59:45
- 2026.04.01 AD 'P' 14:59:45 EDT
- Wed, Apr 1, '26
- 2:59 PM
- 02 oc171oc14' PM, Eastern Daylight Time
- 2:59 PM, EDT
- 02026.April.01 AD 02:59 PM
- Wed, 1 Apr 2026 14:59:45 -0400
- 260401185945+0000