DateTimeFormat Example
Today's date and time are {ts '2026-03-09 05:51:49'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 09-Mar-2026 05:51:49
- 2026.03.09 AD 'A' 05:51:49 EDT
- Mon, Mar 9, '26
- 5:51 AM
- 05 oc264oc5' AM, Eastern Daylight Time
- 5:51 AM, EDT
- 02026.March.09 AD 05:51 AM
- Mon, 9 Mar 2026 05:51:49 -0400
- 260309095149+0000