DateTimeFormat Example
Today's date and time are {ts '2026-03-09 13:31:31'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 09-Mar-2026 13:31:31
- 2026.03.09 AD 'P' 13:31:31 EDT
- Mon, Mar 9, '26
- 1:31 PM
- 01 oc134oc13' PM, Eastern Daylight Time
- 1:31 PM, EDT
- 02026.March.09 AD 01:31 PM
- Mon, 9 Mar 2026 13:31:31 -0400
- 260309173131+0000