DateTimeFormat Example
Today's date and time are {ts '2026-07-08 12:49:54'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 08-Jul-2026 12:49:54
- 2026.07.08 AD 'P' 12:49:54 EDT
- Wed, Jul 8, '26
- 12:49 PM
- 12 oc820oc12' PM, Eastern Daylight Time
- 0:49 PM, EDT
- 02026.July.08 AD 12:49 PM
- Wed, 8 Jul 2026 12:49:54 -0400
- 260708164954+0000