Hello,
I am working on a project where I need to filter out the year of many dates in a large feature set using arcade. The current format is the standard YYYY-MM-DD, but I only want to use the year from this format. Is there a way to convert this to a string/integer and use this to pull the date?
Here is the code that I have this far:
//Return populated out_dict as FeatureSet
var dates = FeatureSet(Text(out_dict))
Here is the output:
| 09 Feb 2017 12:00:00 pm | 0 |
| 09 Feb 2021 11:40:35 am | 1 |
| 09 Feb 2017 12:01:14 pm | 2 |
| 09 Feb 2021 11:40:43 am | 3 |
| 09 Feb 2017 12:01:26 pm | 4 |
Like I mentioned, just the year of the date would be great, thanks!