DateTimeFormat Example
Today's date and time are {ts '2026-06-01 12:43:28'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 01-Jun-2026 12:43:28
- 2026.06.01 AD 'P' 12:43:28 EDT
- Mon, Jun 1, '26
- 12:43 PM
- 12 oc40oc12' PM, Eastern Daylight Time
- 0:43 PM, EDT
- 02026.June.01 AD 12:43 PM
- Mon, 1 Jun 2026 12:43:28 -0400
- 260601164328+0000