DateTimeFormat Example
Today's date and time are {ts '2026-05-01 07:08:16'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 01-May-2026 07:08:16
- 2026.05.01 AD 'A' 07:08:16 EDT
- Fri, May 1, '26
- 7:08 AM
- 07 oc45oc7' AM, Eastern Daylight Time
- 7:08 AM, EDT
- 02026.May.01 AD 07:08 AM
- Fri, 1 May 2026 07:08:16 -0400
- 260501110816+0000