Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Address Moment.js Errors #41

Open
karismatic-megafauna opened this issue Oct 19, 2017 · 1 comment
Open

Address Moment.js Errors #41

karismatic-megafauna opened this issue Oct 19, 2017 · 1 comment

Comments

@karismatic-megafauna
Copy link
Owner

http://momentjs.com/guides/#/warnings/js-date/

This error is popping up wherever we use moment.

From what I understand, the solution is to describe the format of the date you expect:

// BAD
moment('December 2008');

// GOOD
moment('December 2008', 'MMMM YYYY');
@jasil1414
Copy link

Hi @michaelghinrichs ,
Is this warning coming from react-datepicker package ?
As the warning appears as soon as I click on the date picker

Although we need to specify the format here and here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants