DateTimeFormat Example
Today's date and time are {ts '2026-04-20 09:52:48'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 20-Apr-2026 09:52:48
- 2026.04.20 AD 'A' 09:52:48 EDT
- Mon, Apr 20, '26
- 9:52 AM
- 09 oc118oc9' AM, Eastern Daylight Time
- 9:52 AM, EDT
- 02026.April.20 AD 09:52 AM
- Mon, 20 Apr 2026 09:52:48 -0400
- 260420135248+0000