DateTimeFormat Example
Today's date and time are {ts '2026-10-05 21:43:58'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 05-Oct-2026 21:43:58
- 2026.10.05 AD 'P' 21:43:58 EDT
- Mon, Oct 5, '26
- 9:43 PM
- 09 oc616oc21' PM, Eastern Daylight Time
- 9:43 PM, EDT
- 02026.October.05 AD 09:43 PM
- Mon, 5 Oct 2026 21:43:58 -0400
- 261006014358+0000