Hello,
I need to calculate the number of days a permit has been open since it was issued. I am using this python code:
datetime.datetime.now().day - !permitissdate!
The permitissdate is a date field, and the field to which the calculation is being written (timeopen) is a short field.
I am getting the following error:
File "<expression>", line 1, in <module>
TypeError: unsupported operand type(s) for -: 'int' and 'str'
Could someone help me identify the problem?
Thanks in advance!
Deb.