def minimalist_xldate_as_datetime(xldate, datemode):
    return datetime.datetime(1899, 12, 30) + datetime.timedelta(days=xldate +
        1462 * datemode)
How do I read a date in Excel format in Python?