DateTimeFormat Example
Today's date and time are {ts '2026-10-19 17:42:20'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 19-Oct-2026 17:42:20
- 2026.10.19 AD 'P' 17:42:20 EDT
- Mon, Oct 19, '26
- 5:42 PM
- 05 oc196oc17' PM, Eastern Daylight Time
- 5:42 PM, EDT
- 02026.October.19 AD 05:42 PM
- Mon, 19 Oct 2026 17:42:20 -0400
- 261019214220+0000