I am seeing the following error when running today()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<string>", line 108, in today
AttributeError: 'instancemethod' object has no attribute 'today'
My office mate does not see this error when he runs on his computer.
I get the same error with the following code:
Code: Select all
from datetime import datetime as dt
dateFormat = None
dateFormat = dateFormat or '%Y%j'
dt.date.today().strftime(dateFormat)
Any ideas on how to diagnose the problem?
Thanks,
Joleen