Might be useful to handle year only, or month and year
See original GitHub issueClearly there is a risk of ambiguity here, but arguably that’s up to upstream/downstream code to handle. It would be good to be able to parse month and year (defaulting to the first of the month I guess), e.g.
chrono.parseDate('June 2004')
and
chrono.parseDate('06/2004')
Issue Analytics
- State:
- Created 8 years ago
- Comments:6
Top Results From Across the Web
Should You Include Months on Your Resume - LinkedIn
You should always list the months you worked—not just years. Many resumes list years only, not months. I know a lot of that...
Read more >In a database, would you use a date field or year and month ...
I work with data like you described - expiration dates where day is always last day of the month so we only need...
Read more >Dates | Writing Style Guide | Western Michigan University
The semester begins Tuesday, Sept. 4, 2012. If only the month and year are used, do not use commas. Do not use the...
Read more >Dates: How to Write Correctly - The Editor's Manual
When it is clear which year is being referred to, you may indicate only day and month. Spell out the month, and write...
Read more >How to Convert Date to Month and Year in Excel
In this tutorial, you will find how to get the month and year from a date in Excel. ... Use the fill handle...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
As a lurker of this project and other date parsing libs, Ive struggled with this ambiguity. I feel like the intent here is to capture not June 1 but a date range between June 1st - and June 30th.
I’ve closed the issue, let me know if there is still something needed.