I would use the datetime module and the toordinal () function
from datetime import date print date.toordinal(date(1970,1,1)) 719163
To get the date you received, you will use
print date.toordinal(date(1971,1,2)) 719529
or to simplify the conversion
print date.toordinal(date(1970,1,1))+366 719529
I believe that the reason the date is disabled is due to the fact that the date-date starts counting down from January 0, 0000, which is not recognized as a valid date. You will have to counteract the change in the starting date by adding one to the year and day. The month does not matter, because the first month in datetime is 0 in money
source share