AnsweredAssumed Answered

GeoEvent Processor - Help with Field Calculator Date Expressions

Question asked by REAdmin1 on Mar 5, 2016

I was wondering with GeoEvent Field Calculator, if you can do some calculation I am currently doing using the field calculator in ArcMap 10.3.1 as features are added or updated.

 

1) Duration Time- I am trying to find the difference (number of Days) of two dates and copy to existing field

ArcMap Field Calculator expression-  (arcpy.time.ParseDateTimeString(Field1)-arcpy.time.ParseDateTimeString(Field2)).days

 

2) Expiration Date- I am trying to find expiration date based on the features start date and copy to existing field

ArcMap Field Calculator expression- arcpy.time.ParseDateTimeString(Field1) + datetime.timedelta(days=120)

 

3) Year- Extracting Year from start date and copy to existing field

ArcMap Field Calculator expression- (arcpy.time.ParseDateTimeString(field1)).year

 

I am not sure if this is posssible but any help will be much appreciated.

Outcomes