DateTimeFormat Example
Today's date and time are {ts '2026-10-06 17:42:51'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 06-Oct-2026 17:42:51
- 2026.10.06 AD 'P' 17:42:51 EDT
- Tue, Oct 6, '26
- 5:42 PM
- 05 oc503oc17' PM, Eastern Daylight Time
- 5:42 PM, EDT
- 02026.October.06 AD 05:42 PM
- Tue, 6 Oct 2026 17:42:51 -0400
- 261006214251+0000