Open pketh opened 2 years ago
The only way to get this to work right now is to manually remove the dddd from the string and just parse
dayjs('Feb 1/22', 'MMM D/YY')
Neither moment nor dayjs have a parsing token dddd
; so parsing with a format of dddd, MMMM D, YYYY h:mm A
creates an invalid date.
So perhaps this should be a feature request.
Describe the bug Using the version on the dayjs website (via the web console), I can construct dates like
Tuesday Feb 1/22
withBut attempting to parse them with the same format string returns
Invalid Date
Expected behavior
the parser would return a valid dayjs object
Information