def convert_datestr(datestr):
    try:
        return dateutil.parser.parse(datestr)
    except (TypeError, ValueError, AttributeError):
        return None
Converts dates like `12/31/2010` into datetime objects.
dataset/ETHPy150Open buildingenergy/buildingenergy-platform/seed/utils/time.py/convert_datestr