DateTimeFormat Example
Today's date and time are {ts '2026-06-04 13:13:29'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 04-Jun-2026 13:13:29
- 2026.06.04 AD 'P' 13:13:29 EDT
- Thu, Jun 4, '26
- 1:13 PM
- 01 oc612oc13' PM, Eastern Daylight Time
- 1:13 PM, EDT
- 02026.June.04 AD 01:13 PM
- Thu, 4 Jun 2026 13:13:29 -0400
- 260604171329+0000