DateTimeFormat Example
Today's date and time are {ts '2026-03-29 14:58:04'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 29-Mar-2026 14:58:04
- 2026.03.29 AD 'P' 14:58:04 EDT
- Sun, Mar 29, '26
- 2:58 PM
- 02 oc701oc14' PM, Eastern Daylight Time
- 2:58 PM, EDT
- 02026.March.29 AD 02:58 PM
- Sun, 29 Mar 2026 14:58:04 -0400
- 260329185804+0000