question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Might be useful to handle year only, or month and year

See original GitHub issue

Clearly 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:closed
  • Created 8 years ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
silentrobcommented, Mar 10, 2016

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.

1reaction
benaubincommented, Mar 24, 2016

I’ve closed the issue, let me know if there is still something needed.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found