Open prathameshpatel opened 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"
layout, err := dateparse.ParseFormat("13-02-2015", dateparse.PreferMonthFirst(false))
Could not find format for "13-02-2015"
Whereas, layout, err := dateparse.ParseFormat("13/02/2015", dateparse.PreferMonthFirst(false)) parses successfully
layout, err := dateparse.ParseFormat("13/02/2015", dateparse.PreferMonthFirst(false))
Are there any plans to support hyphens - in place of forward-slash / ?
-
/
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 successfullyAre there any plans to support hyphens
-
in place of forward-slash/
?