DateTimeFormat Example
Today's date and time are {ts '2026-08-06 23:56:33'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 06-Aug-2026 23:56:33
- 2026.08.06 AD 'P' 23:56:33 EDT
- Thu, Aug 6, '26
- 11:56 PM
- 11 oc363oc23' PM, Eastern Daylight Time
- 11:56 PM, EDT
- 02026.August.06 AD 11:56 PM
- Thu, 6 Aug 2026 23:56:33 -0400
- 260807035633+0000