DateTimeFormat Example
Today's date and time are {ts '2026-07-07 12:58:15'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 07-Jul-2026 12:58:15
- 2026.07.07 AD 'P' 12:58:15 EDT
- Tue, Jul 7, '26
- 12:58 PM
- 12 oc182oc12' PM, Eastern Daylight Time
- 0:58 PM, EDT
- 02026.July.07 AD 12:58 PM
- Tue, 7 Jul 2026 12:58:15 -0400
- 260707165815+0000