DateTimeFormat Example
Today's date and time are {ts '2026-07-29 16:21:28'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 29-Jul-2026 16:21:28
- 2026.07.29 AD 'P' 16:21:28 EDT
- Wed, Jul 29, '26
- 4:21 PM
- 04 oc794oc16' PM, Eastern Daylight Time
- 4:21 PM, EDT
- 02026.July.29 AD 04:21 PM
- Wed, 29 Jul 2026 16:21:28 -0400
- 260729202128+0000