DateTimeFormat Example
Today's date and time are {ts '2026-02-03 18:39:05'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 03-Feb-2026 18:39:05
- 2026.02.03 AD 'P' 18:39:05 EST
- Tue, Feb 3, '26
- 6:39 PM
- 06 oc409oc18' PM, Eastern Standard Time
- 6:39 PM, EST
- 02026.February.03 AD 06:39 PM
- Tue, 3 Feb 2026 18:39:05 -0500
- 260203233905+0000