DateTimeFormat Example
Today's date and time are {ts '2026-12-06 03:58:18'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 06-Dec-2026 03:58:18
- 2026.12.06 AD 'A' 03:58:18 EST
- Sun, Dec 6, '26
- 3:58 AM
- 03 oc348oc3' AM, Eastern Standard Time
- 3:58 AM, EST
- 02026.December.06 AD 03:58 AM
- Sun, 6 Dec 2026 03:58:18 -0500
- 261206085818+0000