DateTimeFormat Example
Today's date and time are {ts '2026-03-21 14:57:12'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 21-Mar-2026 14:57:12
- 2026.03.21 AD 'P' 14:57:12 EDT
- Sat, Mar 21, '26
- 2:57 PM
- 02 oc344oc14' PM, Eastern Daylight Time
- 2:57 PM, EDT
- 02026.March.21 AD 02:57 PM
- Sat, 21 Mar 2026 14:57:12 -0400
- 260321185712+0000