DateTimeFormat Example
Today's date and time are {ts '2026-07-01 13:20:18'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 01-Jul-2026 13:20:18
- 2026.07.01 AD 'P' 13:20:18 EDT
- Wed, Jul 1, '26
- 1:20 PM
- 01 oc79oc13' PM, Eastern Daylight Time
- 1:20 PM, EDT
- 02026.July.01 AD 01:20 PM
- Wed, 1 Jul 2026 13:20:18 -0400
- 260701172018+0000