Has anyone encountered an issue with a popup window showing a long number for the date field? This just happened the other day and we've never had this issue and I can't figure out what's causing it. Map Viewer is showing the date field properly, but on our actual GIS website it shows as if it's a coordinate number. Please see attached pictures.
This is from Map Viewer showing the popup window showing correct date format.
This is from actual GIS website showing same popup, but with date field format incorrect:
As I said, we've never had this issue until a few days ago and can't figure out where it's coming from. Everything in attribute table is showing the date fields with correct format. The date field is formatted as date and not string.
No updates have been pushed but the GIS site web app is based off of 3.x JSAPI looks like WAB? and Map Viewer is using the latest 4.x JSAPI so you might see some features not supported in the GIS site web app.
I was thinking a possible update as well. But if no updates were pushed, doesn't explain why everything was working fine before late Friday. Never had this issue before. Thanks for your input.
Hard to say why it's behaving that way. What platform is your second image coming from, the popup format looks different.
That long number is probably the integer timestamp, and it is somehow being brought into the other popup as an actual integer. Anyway, try using an expression instead. Date can cast your field into a string, which would not be misinterpreted as some other field type.
Text($feature.datefield, 'D/M/Y')
Hi Josh,
The other platform(GIS website) is from WAB thru AGOL. I did already try the arcade expression you suggested and the result was a blank field when clicking on the popup, which I found odd. Anyways, thanks for the suggestion. Weird thing is the date field always showed properly until late day Friday.
Can you open the map in the Classic Map Viewer and check out the field configuration there?
Yes, I tried reconfiguring in Classic and has same results.