DateTimeFormat Example
Today's date and time are {ts '2026-04-06 14:51:54'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 06-Apr-2026 14:51:54
- 2026.04.06 AD 'P' 14:51:54 EDT
- Mon, Apr 6, '26
- 2:51 PM
- 02 oc30oc14' PM, Eastern Daylight Time
- 2:51 PM, EDT
- 02026.April.06 AD 02:51 PM
- Mon, 6 Apr 2026 14:51:54 -0400
- 260406185154+0000