araddon / dateparse

GoLang Parse many date strings without knowing format in advance.
MIT License
2.03k stars 164 forks source link

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

Open prathameshpatel opened 1 year ago

prathameshpatel commented 1 year ago

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 / ?