DateTimeFormat Example
Today's date and time are {ts '2024-11-20 17:50:49'}.
Using DateTimeFormat, we can display that date and time in different ways:
- 20-Nov-2024 17:50:49
- 2024.11.20 AD 'P' 17:50:49 EST
- Wed, Nov 20, '24
- 5:50 PM
- 05 oc895oc17' PM, Eastern Standard Time
- 5:50 PM, EST
- 02024.November.20 AD 05:50 PM
- Wed, 20 Nov 2024 17:50:49 -0500
- 241120225049+0000