DateTimeFormat Example
Today's date and time are {ts '2026-03-10 15:04:08'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 10-Mar-2026 15:04:08
- 2026.03.10 AD 'P' 15:04:08 EDT
- Tue, Mar 10, '26
- 3:04 PM
- 03 oc913oc15' PM, Eastern Daylight Time
- 3:04 PM, EDT
- 02026.March.10 AD 03:04 PM
- Tue, 10 Mar 2026 15:04:08 -0400
- 260310190408+0000