Setting mindate/maxdate via options only sets date
See original GitHub issueThis works
$('#example14').datetimepicker({
minDate: new Date(2010, 11, 20, 8, 30),
maxDate: new Date(2010, 11, 31, 17, 30)
});
This does not work (but it will set the min/max for DATE appropriately)
$('#example14').datetimepicker().datetimepicker('option', {
minDate: new Date(2010, 11, 20, 8, 30),
maxDate: new Date(2010, 11, 31, 17, 30)
});
Expected outcome: Both the min/max date and TIME should be set
Issue Analytics
- State:
- Created 11 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Changing minDate and maxDate on the fly using jQuery ...
I've written a simple little function that gets called whenever the user selects a new event, but it only ever shows the initially...
Read more >How to Set minimum and maximum date in jQuery UI Datepicker
With minDate and maxDate options, you can restrict date range of jQuery UI Datepicker widget. The user will only able to select the...
Read more >Options - getdatepicker.com
Takes an [ string or Date or moment ] of values and allows the user to select only from those days. Setting this...
Read more >jQuery DatePicker - Set the date range (minDate, maxDate or ...
Hello, I have a jQuery date picker which is initalised such that the user can select any date. I also have a product...
Read more >Minimum and Maximum Constraints for Date and Time Pickers
When the minDate property is set, previous days cannot be selected and browsing to previous months is inhibited. The same happens in the ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes, a change was made in 1.0.2 to better apply options after initialization. I am closing this one.
@pontikis, nice one!