DateTimeFormat Example
Today's date and time are {ts '2026-12-04 19:09:39'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 04-Dec-2026 19:09:39
- 2026.12.04 AD 'P' 19:09:39 EST
- Fri, Dec 4, '26
- 7:09 PM
- 07 oc904oc19' PM, Eastern Standard Time
- 7:09 PM, EST
- 02026.December.04 AD 07:09 PM
- Fri, 4 Dec 2026 19:09:39 -0500
- 261205000939+0000