DateTimeFormat Example
Today's date and time are {ts '2026-02-10 16:23:50'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 10-Feb-2026 16:23:50
- 2026.02.10 AD 'P' 16:23:50 EST
- Tue, Feb 10, '26
- 4:23 PM
- 04 oc133oc16' PM, Eastern Standard Time
- 4:23 PM, EST
- 02026.February.10 AD 04:23 PM
- Tue, 10 Feb 2026 16:23:50 -0500
- 260210212350+0000