DateTimeFormat Example
Today's date and time are {ts '2026-04-08 14:52:50'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 08-Apr-2026 14:52:50
- 2026.04.08 AD 'P' 14:52:50 EDT
- Wed, Apr 8, '26
- 2:52 PM
- 02 oc699oc14' PM, Eastern Daylight Time
- 2:52 PM, EDT
- 02026.April.08 AD 02:52 PM
- Wed, 8 Apr 2026 14:52:50 -0400
- 260408185250+0000