DateTimeFormat Example
Today's date and time are {ts '2026-12-05 20:37:32'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 05-Dec-2026 20:37:32
- 2026.12.05 AD 'P' 20:37:32 EST
- Sat, Dec 5, '26
- 8:37 PM
- 08 oc454oc20' PM, Eastern Standard Time
- 8:37 PM, EST
- 02026.December.05 AD 08:37 PM
- Sat, 5 Dec 2026 20:37:32 -0500
- 261206013732+0000