DateTimeFormat Example
Today's date and time are {ts '2026-04-21 05:38:09'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 21-Apr-2026 05:38:09
- 2026.04.21 AD 'A' 05:38:09 EDT
- Tue, Apr 21, '26
- 5:38 AM
- 05 oc726oc5' AM, Eastern Daylight Time
- 5:38 AM, EDT
- 02026.April.21 AD 05:38 AM
- Tue, 21 Apr 2026 05:38:09 -0400
- 260421093809+0000