You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 14, 2019. It is now read-only.
I realized the logic for this actually made sense. It is setting it to the minimum date. It gave that weird date because there was no minimum date set.
Sorry, I'm going to go ahead and open it up and let you decide. If a date is parseable by new Date(). It may be best to let it happen. Perhaps, however, returning the current day versus the min date if parsing fails is up in the air.
I want to set a predefined format, but I also want users to be able to manually input values.
Here is what happens currently if the user puts in values that do not match the predefined format (mine is mm/dd/yy HH:ii P in this example):
The same happens if they put in junk. "asdf" for example.
I have created a pull request #526 to fix this issue. If all else fails, it will use new Date(input). If that fails to, it will return new Date().
The text was updated successfully, but these errors were encountered: