DateTimeFormat Example
Today's date and time are {ts '2026-06-16 17:14:17'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 16-Jun-2026 17:14:17
- 2026.06.16 AD 'P' 17:14:17 EDT
- Tue, Jun 16, '26
- 5:14 PM
- 05 oc905oc17' PM, Eastern Daylight Time
- 5:14 PM, EDT
- 02026.June.16 AD 05:14 PM
- Tue, 16 Jun 2026 17:14:17 -0400
- 260616211417+0000