DateTimeFormat Example
Today's date and time are {ts '2026-04-27 07:12:42'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 27-Apr-2026 07:12:42
- 2026.04.27 AD 'A' 07:12:42 EDT
- Mon, Apr 27, '26
- 7:12 AM
- 07 oc675oc7' AM, Eastern Daylight Time
- 7:12 AM, EDT
- 02026.April.27 AD 07:12 AM
- Mon, 27 Apr 2026 07:12:42 -0400
- 260427111242+0000