Skip to content

Cannot parse "13-02-2015", but successfully parses "13/02/2015" #155

@prathameshpatel

Description

@prathameshpatel

layout, err := dateparse.ParseFormat("13-02-2015", dateparse.PreferMonthFirst(false))
This fails with error = Could not find format for "13-02-2015"

Whereas, layout, err := dateparse.ParseFormat("13/02/2015", dateparse.PreferMonthFirst(false)) parses successfully

Are there any plans to support hyphens - in place of forward-slash / ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions