mirror of
https://github.com/araddon/dateparse.git
synced 2025-09-18 12:54:57 +08:00
Add support for dd[th,nd,st,rd] Month yyyy
Incorporate PR https://github.com/araddon/dateparse/pull/128 from https://github.com/krhubert to fix https://github.com/araddon/dateparse/issues/127
This commit is contained in:
@@ -435,6 +435,12 @@ iterRunes:
|
||||
p.stateDate = dateDigitChineseYear
|
||||
case ',':
|
||||
return p, unknownErr(datestr)
|
||||
case 's', 'S', 'r', 'R', 't', 'T', 'n', 'N':
|
||||
// 1st January 2018
|
||||
// 2nd Jan 2018 23:59
|
||||
// st, rd, nd, st
|
||||
p.stateDate = dateAlphaWsMonthSuffix
|
||||
i--
|
||||
default:
|
||||
continue
|
||||
}
|
||||
|
Reference in New Issue
Block a user