DateTimeFormat Example
Today's date and time are {ts '2026-06-08 13:00:22'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 08-Jun-2026 13:00:22
- 2026.06.08 AD 'P' 13:00:22 EDT
- Mon, Jun 8, '26
- 1:00 PM
- 01 oc450oc13' PM, Eastern Daylight Time
- 1:00 PM, EDT
- 02026.June.08 AD 01:00 PM
- Mon, 8 Jun 2026 13:00:22 -0400
- 260608170022+0000