I am working on a site that is using version 2.6 of the Esri JavaScript API. I have an info window that displays some date information, and the date is one day behind the date in the database.
For example:
If I identify a feature in ArcMap, the date returned is 8/15/2007. When I query for the same feature through the Rest endpoint I get 2007/08/15 00:00:00 UTC. When I identify the feature in the web application, the date returned is 8/14/2007.
In the JavaScript code I am formatting the date as follows:
${SALEDT:DateFormat(selector: 'date', fullYear: true)}
What is causing this, and what can I do to have the correct date returned?