DateTimeFormat Example
Today's date and time are {ts '2026-06-09 17:40:39'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 09-Jun-2026 17:40:39
- 2026.06.09 AD 'P' 17:40:39 EDT
- Tue, Jun 9, '26
- 5:40 PM
- 05 oc9oc17' PM, Eastern Daylight Time
- 5:40 PM, EDT
- 02026.June.09 AD 05:40 PM
- Tue, 9 Jun 2026 17:40:39 -0400
- 260609214039+0000