Convert ESRI Date to common date in item picker value
I have a form where I want the user to pick a record in the item picker form activity. Part of the markdown/value input I am using has an esriDate field (aka Unix data type?), and the value is something like 1360017870652. Rather than show that value, is there an easy conversion option to format this? for example, in my item picker sub-workflow, my Get Form Element Items From Features is populated like this for my value:
**Project Name**: {PROJ_NAME}\
**Date**: {IMAGE_DT}
...but the IMAGE_DT value makes no sense to anyone. Any tips?
-
You could try a For Each activity on your features in the Item Picker sub-workflow instead of the Get Form Element Items From Features. Then just construct your own items object for the Form item to consume via Set Form Element Items. You would have full control over how you want the attributes to be formatted. e.g. you could format the date with something similar to this:
new Date(forEach1.item.attributes.IMAGE_DT).toISOString()
which returns 2013-02-04T22:44:30.652Z
0 -
Moved to this topic as it's more relevant for troubleshooting questions rather than ideas for new features.
0
Please sign in to leave a comment.
Comments
2 comments