DateTimeFormat Example
Today's date and time are {ts '2026-08-05 16:01:36'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 05-Aug-2026 16:01:36
- 2026.08.05 AD 'P' 16:01:36 EDT
- Wed, Aug 5, '26
- 4:01 PM
- 04 oc970oc16' PM, Eastern Daylight Time
- 4:01 PM, EDT
- 02026.August.05 AD 04:01 PM
- Wed, 5 Aug 2026 16:01:36 -0400
- 260805200136+0000