DateTimeFormat Example
Today's date and time are {ts '2026-02-27 16:30:44'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 27-Feb-2026 16:30:44
- 2026.02.27 AD 'P' 16:30:44 EST
- Fri, Feb 27, '26
- 4:30 PM
- 04 oc923oc16' PM, Eastern Standard Time
- 4:30 PM, EST
- 02026.February.27 AD 04:30 PM
- Fri, 27 Feb 2026 16:30:44 -0500
- 260227213044+0000