DateTimeFormat Example
Today's date and time are {ts '2026-10-21 23:49:07'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 21-Oct-2026 23:49:07
- 2026.10.21 AD 'P' 23:49:07 EDT
- Wed, Oct 21, '26
- 11:49 PM
- 11 oc539oc23' PM, Eastern Daylight Time
- 11:49 PM, EDT
- 02026.October.21 AD 11:49 PM
- Wed, 21 Oct 2026 23:49:07 -0400
- 261022034907+0000