With the Arcade language, I try to feed a dictionary with several fields of which one field is of type date.
This dictionary is fed from a feature service.
Here is an example of my code:
If I return the contents of my dictionary, I can see the date value.
But if I try to flip it this way:
Date values not appearing !
Can someone help me with this?
Solved! Go to Solution.
Thanks @DavidPike - I have seen this come up a lot recently with increased adoption of Data Expressions. I'm thinking I'll submit an issue to see if a date field can be included in the FeatureSet example in the Arcade documentation.
As far as I am aware this is still not in the documentation (definitely not in the samples that the link in the Data Expression directs you to) and this would still be very helpful to include!
For anyone else who stumbles along this problem, here's an explanation and alternative. You can vote on this idea to hopefully get it fixed: https://community.esri.com/t5/arcgis-online-ideas/arcade-allow-date-values-in-date-fields/idc-p/1236...
With this week's update to Arcade and ArcGIS Dashboards, date fields in feature set constructors now just work. You no longer have to pass dates in as EPOCH if you pass the dictionary into the FeatureSet() function (which as of this release accepts a dictionary as opposed to only text based JSON).
Learn more in this blog post.
NOTE: For Enterprise users, this update is targeted for 11.2