Skip to content

Parser fails to parse 'DDmonYYYY' #360

@asishm

Description

@asishm
>>> dateutil.parser.parse('13NOV2017', fuzzy=True)
datetime.datetime(2017, 4, 13, 0, 0)  # --- today's date

>>> dateutil.parser.parse('13NOV2017', fuzzy=True, dayfirst=True)
datetime.datetime(2017, 4, 13, 0, 0)  # --- today's date

Without fuzzy, it raises an error.

These should parse to the proper dates. I am not sure how the tokenization is done, but a possible solution could be to use an alphabet character (in addition to what I think is used - any non-alphanum character)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions