def datestr2num(d, default=None):
    '\n    Convert a date string to a datenum using\n    :func:`dateutil.parser.parse`.\n\n    Parameters\n    ----------\n    d : string or sequence of strings\n        The dates to convert.\n\n    default : datetime instance\n        The default date to use when fields are missing in `d`.\n    '
    if cbook.is_string_like(d):
        dt = dateutil.parser.parse(d, default=default)
        return date2num(dt)
    else:
        if (default is not None):
            d = [dateutil.parser.parse(s, default=default) for s in d]
        d = np.asarray(d)
        if (not d.size):
            return d
        return date2num(_dateutil_parser_parse_np_vectorized(d))
Convert a date string to a datenum using
:func:`dateutil.parser.parse`.

Parameters
----------
d : string or sequence of strings
    The dates to convert.

default : datetime instance
    The default date to use when fields are missing in `d`.
def datestr2num(d, default=None):
    '\n    Convert a date string to a datenum using\n    :func:`dateutil.parser.parse`.\n\n    Parameters\n    ----------\n    d : string or sequence of strings\n        The dates to convert.\n\n    default : datetime instance\n        The default date to use when fields are missing in `d`.\n    '
    if cbook.is_string_like(d):
        dt = dateutil.parser.parse(d, default=default)
        return date2num(dt)
    else:
        if (default is not None):
            d = [dateutil.parser.parse(s, default=default) for s in d]
        d = np.asarray(d)
        if (not d.size):
            return d
        return date2num(_dateutil_parser_parse_np_vectorized(d))