DateTimeFormat Example
Today's date and time are {ts '2026-03-05 16:44:36'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 05-Mar-2026 16:44:36
- 2026.03.05 AD 'P' 16:44:36 EST
- Thu, Mar 5, '26
- 4:44 PM
- 04 oc491oc16' PM, Eastern Standard Time
- 4:44 PM, EST
- 02026.March.05 AD 04:44 PM
- Thu, 5 Mar 2026 16:44:36 -0500
- 260305214436+0000