Skip to content

Unable to parse "the 1st day of March" #1256

Open
@zakwalters

Description

@zakwalters

Adding "day" in the middle of a date fails parsing:

>>> import dateparser as dp
>>> dp.parse("the 1st day of March, 2025")
>>> dp.parse("the 1st of March, 2025")
datetime.datetime(2025, 3, 1, 0, 0)

Version 1.2.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions