DateTimeFormat Example
Today's date and time are {ts '2026-08-06 16:12:31'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 06-Aug-2026 16:12:31
- 2026.08.06 AD 'P' 16:12:31 EDT
- Thu, Aug 6, '26
- 4:12 PM
- 04 oc92oc16' PM, Eastern Daylight Time
- 4:12 PM, EDT
- 02026.August.06 AD 04:12 PM
- Thu, 6 Aug 2026 16:12:31 -0400
- 260806201231+0000