DateTimeFormat Example
Today's date and time are {ts '2026-08-05 20:02:28'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 05-Aug-2026 20:02:28
- 2026.08.05 AD 'P' 20:02:28 EDT
- Wed, Aug 5, '26
- 8:02 PM
- 08 oc418oc20' PM, Eastern Daylight Time
- 8:02 PM, EDT
- 02026.August.05 AD 08:02 PM
- Wed, 5 Aug 2026 20:02:28 -0400
- 260806000228+0000