DateTimeFormat Example
Today's date and time are {ts '2026-03-24 14:55:51'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 24-Mar-2026 14:55:51
- 2026.03.24 AD 'P' 14:55:51 EDT
- Tue, Mar 24, '26
- 2:55 PM
- 02 oc424oc14' PM, Eastern Daylight Time
- 2:55 PM, EDT
- 02026.March.24 AD 02:55 PM
- Tue, 24 Mar 2026 14:55:51 -0400
- 260324185551+0000