DateTimeFormat Example
Today's date and time are {ts '2026-10-16 17:56:22'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 16-Oct-2026 17:56:22
- 2026.10.16 AD 'P' 17:56:22 EDT
- Fri, Oct 16, '26
- 5:56 PM
- 05 oc322oc17' PM, Eastern Daylight Time
- 5:56 PM, EDT
- 02026.October.16 AD 05:56 PM
- Fri, 16 Oct 2026 17:56:22 -0400
- 261016215622+0000