DateTimeFormat Example
Today's date and time are {ts '2026-10-05 18:37:19'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 05-Oct-2026 18:37:19
- 2026.10.05 AD 'P' 18:37:19 EDT
- Mon, Oct 5, '26
- 6:37 PM
- 06 oc990oc18' PM, Eastern Daylight Time
- 6:37 PM, EDT
- 02026.October.05 AD 06:37 PM
- Mon, 5 Oct 2026 18:37:19 -0400
- 261005223719+0000