Python - Calculate Number of Days Between Dates

2524
1
10-01-2014 10:55 AM
JasonSmith
New Contributor II

Hello all,

 

I am new to python and am trying to switch away from VBA which I had only used in excel. I have a program in excel that basically does hot spot analysis, but am trying to convert the exact same process into ArcGIS.

 

What I am trying to do is look at record 1 "date_occur" field and calculate the difference in days from record 2. Eventually this will be a loop and data will be written and deleted, but want to start off by learning the basics first.

Tags (3)
0 Kudos
1 Reply
DanPatterson_Retired
MVP Emeritus

There are variety of calculating the difference between dates using the datetime module   see one example

0 Kudos