DateTimeFormat Example
Today's date and time are {ts '2026-03-09 18:20:41'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 09-Mar-2026 18:20:41
- 2026.03.09 AD 'P' 18:20:41 EDT
- Mon, Mar 9, '26
- 6:20 PM
- 06 oc113oc18' PM, Eastern Daylight Time
- 6:20 PM, EDT
- 02026.March.09 AD 06:20 PM
- Mon, 9 Mar 2026 18:20:41 -0400
- 260309222041+0000