DateTimeFormat Example
Today's date and time are {ts '2021-03-04 02:10:11'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 04-Mar-2021 02:10:11
- 2021.03.04 AD 'A' 02:10:11 EST
- Thu, Mar 4, '21
- 2:10 AM
- 02 oc926oc2' AM, Eastern Standard Time
- 2:10 AM, EST
- 02021.March.04 AD 02:10 AM
- Thu, 4 Mar 2021 02:10:11 -0500
- 210304071011+0000