How to parse date string of unknown locale
Open
- Dominant language
- JavaScript
- Stars
- 48.7k
- Forks
- 2.5k
- PR merge metrics
- No merged PRs in 30d
Description
I have a set of dates in the format "MMMM Do, YYYY". However I do not always know what locale the dates are in eg the string may be "January 1st, 2020" or "Janvier 1st, 2020" . How can I parse these date strings without foreknowledge of the locale?
Contributor guide
Research direction
No source file, test, or entry point is identified in the issue. Start by reviewing Day.js's locale and parsing entry points and determine the expected behavior for the example strings; done would require an agreed, documented approach for unknown-locale input.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100