DateTimeFormat Example
Today's date and time are {ts '2026-11-28 22:02:44'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 28-Nov-2026 22:02:44
- 2026.11.28 AD 'P' 22:02:44 EST
- Sat, Nov 28, '26
- 10:02 PM
- 10 oc215oc22' PM, Eastern Standard Time
- 10:02 PM, EST
- 02026.November.28 AD 10:02 PM
- Sat, 28 Nov 2026 22:02:44 -0500
- 261129030244+0000