DateTimeFormat Example
Today's date and time are {ts '2026-06-15 05:40:07'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 15-Jun-2026 05:40:07
- 2026.06.15 AD 'A' 05:40:07 EDT
- Mon, Jun 15, '26
- 5:40 AM
- 05 oc158oc5' AM, Eastern Daylight Time
- 5:40 AM, EDT
- 02026.June.15 AD 05:40 AM
- Mon, 15 Jun 2026 05:40:07 -0400
- 260615094007+0000