I have a feature with a date field that I want to include in a popup. In the AGOL web map you have the ability to customize the date format but not so when using the popupTemplate in the JS.
See here, Road Closures.
Click on a feature then search for street name (S IRVINE ST for example) to see difference. Any idea how to fix this? Should I be using an arcade expression to convert? How is the AGOL map doing it?