DateTimeFormat Example
Today's date and time are {ts '2026-10-20 17:44:22'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 20-Oct-2026 17:44:22
- 2026.10.20 AD 'P' 17:44:22 EDT
- Tue, Oct 20, '26
- 5:44 PM
- 05 oc472oc17' PM, Eastern Daylight Time
- 5:44 PM, EDT
- 02026.October.20 AD 05:44 PM
- Tue, 20 Oct 2026 17:44:22 -0400
- 261020214422+0000