DateTimeFormat Example
Today's date and time are {ts '2026-08-05 17:41:24'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 05-Aug-2026 17:41:24
- 2026.08.05 AD 'P' 17:41:24 EDT
- Wed, Aug 5, '26
- 5:41 PM
- 05 oc874oc17' PM, Eastern Daylight Time
- 5:41 PM, EDT
- 02026.August.05 AD 05:41 PM
- Wed, 5 Aug 2026 17:41:24 -0400
- 260805214124+0000