DateTimeFormat Example
Today's date and time are {ts '2026-10-10 17:47:39'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 10-Oct-2026 17:47:39
- 2026.10.10 AD 'P' 17:47:39 EDT
- Sat, Oct 10, '26
- 5:47 PM
- 05 oc86oc17' PM, Eastern Daylight Time
- 5:47 PM, EDT
- 02026.October.10 AD 05:47 PM
- Sat, 10 Oct 2026 17:47:39 -0400
- 261010214739+0000