Is This Content Helpful?
We're glad to know this article was helpful.
Date information in ArcGIS Online pop-up windows and attribute tables, which are stored in a Date field, appear a day earlier than the expected date.
ArcGIS Online stores time in the UTC format. This issue occurs when a Date field is used in ArcMap, but does not have a time component designated. When a service is published, the values in a Date field are copied to and stored on the server using the UTC format. If a time component has not been assigned to the Date field, the values are assumed to be in UTC format and copied to the server accordingly. Then when viewing the Date/Time values from the service, an automatic conversion value is added to the stored UTC date based on the Time Zone settings of the computer. This conversion can result in an incorrect time value and in some cases can result in the date showing as the previous day.
Use one of the following options to solve the issue.
Enable time for the layer in ArcMap before publishing, and designate a Time Zone.
Note: Time animation is automatically enabled for a time-enabled feature service. The following documentation, ArcGIS Online Help: Disable time animation, describes the steps to disable time animation on the feature layer.
Convert the values stored in the Date field to UTC time and do not apply any time settings to the layer. This can be accomplished using the Convert Time Zone tool in ArcMap. This tool converts the Date/Time values based on the time zones entered in the parameters, and then adds a new field with the converted values. This new field can then be used when working with a service after it has been published to display the values in local time.
Use a text field to store the date information.
Note: While Option C resolves date display issues, this is generally not considered a best practice. After following this option, functionality available only to date fields becomes unavailable.