How to field-calculate random dates for a specific time period?

7274
14
Jump to solution
01-22-2018 09:01 PM
ThaoNDP
New Contributor III

How to field-calculate random dates for a specific time period using Python when calculating date field in ArcGIS Pro?

It is something I need to do when creating fictitious demo data.  For example, I would like to create random dates & time between 01/01/2017 00:00:00 AM and 12/31/2017 11:59:00 PM.

Please help if you have any idea! Thank you very much, guys!

Best regards,

Thao Nguyen

0 Kudos
14 Replies
XanderBakker
Esri Esteemed Contributor

Arcade is pretty much the same as JavaScript (although not everything in JavaScript is supported in Arcade). It will not replace Python, it is something that will provide more possibilities in parts where we cannot use Python for instance (like the pop-up window in a web map for instance in the link I shared earlier). Maybe you feel differently when in the future the true potential of Arcade is revealed. 

0 Kudos
DanPatterson_Retired
MVP Emeritus

My read... like the Java-incarnations... is Arcade may be cross-platform... as long as your platforms includes web stuff and you actually make maps... (neither apply to me )

0 Kudos
DanPatterson_Retired
MVP Emeritus

We have been down that 'Avenue' before

XanderBakker
Esri Esteemed Contributor

LOL. However, I don't think Avenue was used in ArcInfo and ArcPad. Arcade is more cross platform....

0 Kudos
ThaoNDP
New Contributor III

Follow your steps, I did it already. Many thanks! xander_bakker

0 Kudos