Possible Duplicate:
How do I read a date in Excel format in Python?
I am reading values from a .XLS(excel) file.While reading a date field,i am getting a float value like 40374.What i need is to convert this float value into date.Please help.
Thanks in advance!!!!
Dates in excel are represented by the number of days since 1/1/1900. So 40374 is 40,374 days after 1/1/1900, or July 15, 2010
Also I believe that if there is anything after the decimal point, this represents a fraction of a day.
so 40374.0 would be 7/15/2010 at midnight, .5 would be noon, .75 is 6pm, etc.