Return a python datetime object

    xldate: float
        The xl number.

    datemode: int
        0: 1900-based, 1: 1904-based. See xlrd documentation.

def fromxldate(xldate, datemode=1):
    """Return a python datetime object

    xldate: float
        The xl number.

    datemode: int
        0: 1900-based, 1: 1904-based. See xlrd documentation.
    """

    t = xlrd.xldate_as_tuple(xldate, datemode)
    return datetime.datetime(*t)