-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
minDate and maxDate do not work as expected when specify a custom format. #347
Comments
+1 Although I get the feeling the owner doesn't look at the issues that often. |
This is the answer. All possible format options MUST be specified. I am using date only here, so I have to provide both
|
+1, I @lure I tried with your example but doesn't work. |
@ilacyero try add every existing formats to options. May be you use mins/ hours or forget to initialize the proper library. It works for me everywhere. |
same problem |
In the version 2.4.5 line 1121 and 1125, there is a regular expression check:
/^+-$/.test(options.minDate)
If user specify a custom date format, eg: 'Y-m-d', it will not be matched, so it doesn't work as expected.
It works only with 'Y/m/d' format.
The text was updated successfully, but these errors were encountered: