Closed spina-a-d closed 5 years ago
Update: I can get other date objects to work, so I think the example code just needs updating.
Thank you! I will fix this weekend.
What kind of date object did you pass?
I should probably add some validation and more helpful errors.
@aaron9000 When I got the error I did the date as I showed in the above snippet. When I got it to work I think I did it with new Date('27-09-2013')
or something similar instead. I can't confirm because I no longer have the code I was testing with.
You are right. Date.parse() is not producing a date object.
@spina-a-d closing now. I put out a new version of the package and addressed the incorrect setup instructions. Appreciate you taking the time to file an issue! 👍
I followed a really default setup from the
npm
page to see how it worked, but I think there's an issue with how the date is parsed.This simple code:
Produces the error:
I would suspect something is going wrong if this basic example fails.