DateTimeFormat Example
Today's date and time are {ts '2026-02-12 20:22:31'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 12-Feb-2026 20:22:31
- 2026.02.12 AD 'P' 20:22:31 EST
- Thu, Feb 12, '26
- 8:22 PM
- 08 oc515oc20' PM, Eastern Standard Time
- 8:22 PM, EST
- 02026.February.12 AD 08:22 PM
- Thu, 12 Feb 2026 20:22:31 -0500
- 260213012231+0000