DateTimeFormat Example
Today's date and time are {ts '2026-07-06 12:50:03'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 06-Jul-2026 12:50:03
- 2026.07.06 AD 'P' 12:50:03 EDT
- Mon, Jul 6, '26
- 12:50 PM
- 12 oc974oc12' PM, Eastern Daylight Time
- 0:50 PM, EDT
- 02026.July.06 AD 12:50 PM
- Mon, 6 Jul 2026 12:50:03 -0400
- 260706165003+0000