DateTimeFormat Example
Today's date and time are {ts '2026-02-23 16:48:27'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 23-Feb-2026 16:48:27
- 2026.02.23 AD 'P' 16:48:27 EST
- Mon, Feb 23, '26
- 4:48 PM
- 04 oc348oc16' PM, Eastern Standard Time
- 4:48 PM, EST
- 02026.February.23 AD 04:48 PM
- Mon, 23 Feb 2026 16:48:27 -0500
- 260223214827+0000