DateTimeFormat Example
Today's date and time are {ts '2026-10-21 17:39:32'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 21-Oct-2026 17:39:32
- 2026.10.21 AD 'P' 17:39:32 EDT
- Wed, Oct 21, '26
- 5:39 PM
- 05 oc300oc17' PM, Eastern Daylight Time
- 5:39 PM, EDT
- 02026.October.21 AD 05:39 PM
- Wed, 21 Oct 2026 17:39:32 -0400
- 261021213932+0000