DateTimeFormat Example
Today's date and time are {ts '2026-07-22 15:29:30'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 22-Jul-2026 15:29:30
- 2026.07.22 AD 'P' 15:29:30 EDT
- Wed, Jul 22, '26
- 3:29 PM
- 03 oc461oc15' PM, Eastern Daylight Time
- 3:29 PM, EDT
- 02026.July.22 AD 03:29 PM
- Wed, 22 Jul 2026 15:29:30 -0400
- 260722192930+0000