DateTimeFormat Example
Today's date and time are {ts '2026-08-12 06:21:57'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 12-Aug-2026 06:21:57
- 2026.08.12 AD 'A' 06:21:57 EDT
- Wed, Aug 12, '26
- 6:21 AM
- 06 oc196oc6' AM, Eastern Daylight Time
- 6:21 AM, EDT
- 02026.August.12 AD 06:21 AM
- Wed, 12 Aug 2026 06:21:57 -0400
- 260812102157+0000