DateTimeFormat Example
Today's date and time are {ts '2026-04-21 07:12:04'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 21-Apr-2026 07:12:04
- 2026.04.21 AD 'A' 07:12:04 EDT
- Tue, Apr 21, '26
- 7:12 AM
- 07 oc196oc7' AM, Eastern Daylight Time
- 7:12 AM, EDT
- 02026.April.21 AD 07:12 AM
- Tue, 21 Apr 2026 07:12:04 -0400
- 260421111204+0000