DateTimeFormat Example
Today's date and time are {ts '2026-11-23 13:04:20'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 23-Nov-2026 13:04:20
- 2026.11.23 AD 'P' 13:04:20 EST
- Mon, Nov 23, '26
- 1:04 PM
- 01 oc359oc13' PM, Eastern Standard Time
- 1:04 PM, EST
- 02026.November.23 AD 01:04 PM
- Mon, 23 Nov 2026 13:04:20 -0500
- 261123180420+0000