DateTimeFormat Example
Today's date and time are {ts '2026-08-09 00:02:52'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 09-Aug-2026 00:02:52
- 2026.08.09 AD 'A' 00:02:52 EDT
- Sun, Aug 9, '26
- 12:02 AM
- 12 oc55oc24' AM, Eastern Daylight Time
- 0:02 AM, EDT
- 02026.August.09 AD 12:02 AM
- Sun, 9 Aug 2026 00:02:52 -0400
- 260809040252+0000