How to convert a date Object to millisecond in python 2.6.6
date_dob = getattr(model, value)
a = date_dob.timestamp() * 1000
print(a)
Here date_dob is something like "1993-05-29 13:42:10.298Z"
I am getting below error
AttributeError: 'datetime.datetime' object has no attribute 'timestamp'
I am expecting result of 738639730000(epoch)