DateTimeFormat Example
Today's date and time are {ts '2026-03-31 14:54:48'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 31-Mar-2026 14:54:48
- 2026.03.31 AD 'P' 14:54:48 EDT
- Tue, Mar 31, '26
- 2:54 PM
- 02 oc782oc14' PM, Eastern Daylight Time
- 2:54 PM, EDT
- 02026.March.31 AD 02:54 PM
- Tue, 31 Mar 2026 14:54:48 -0400
- 260331185448+0000