DateTimeFormat Example
Today's date and time are {ts '2026-06-02 13:20:17'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 02-Jun-2026 13:20:17
- 2026.06.02 AD 'P' 13:20:17 EDT
- Tue, Jun 2, '26
- 1:20 PM
- 01 oc243oc13' PM, Eastern Daylight Time
- 1:20 PM, EDT
- 02026.June.02 AD 01:20 PM
- Tue, 2 Jun 2026 13:20:17 -0400
- 260602172017+0000