DateTimeFormat Example
Today's date and time are {ts '2026-06-07 13:14:39'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 07-Jun-2026 13:14:39
- 2026.06.07 AD 'P' 13:14:39 EDT
- Sun, Jun 7, '26
- 1:14 PM
- 01 oc42oc13' PM, Eastern Daylight Time
- 1:14 PM, EDT
- 02026.June.07 AD 01:14 PM
- Sun, 7 Jun 2026 13:14:39 -0400
- 260607171439+0000