DateTimeFormat Example
Today's date and time are {ts '2026-07-21 20:54:55'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 21-Jul-2026 20:54:55
- 2026.07.21 AD 'P' 20:54:55 EDT
- Tue, Jul 21, '26
- 8:54 PM
- 08 oc40oc20' PM, Eastern Daylight Time
- 8:54 PM, EDT
- 02026.July.21 AD 08:54 PM
- Tue, 21 Jul 2026 20:54:55 -0400
- 260722005455+0000