AnsweredAssumed Answered

Calculating Dates in Pro using Tasks: Additional Actions

Question asked by wws_ahargreaves on Feb 7, 2019
Latest reply on Feb 7, 2019 by wws_ahargreaves

Hello ArcGIS Pro team & ArcGIS Pro Tasks team

 

I'm using the additional actions steps to calculated fields when exiting a step. I followed this documentation  to Calculate the current date into my assignedDate field using:

time.strftime("%m/%d/%Y")

 I then attempt to add 14 days to the current date and calculate that value into my dueDate field. According to the same page I should be able to use:

!assignedDate!+datetime.timedelta(days=14)

If i perform the field calculation manually this works fine. However, when using the exact same expression in my additional actions I get the below error 

Outcomes