Two datetimepickers: set minDate on one, changes val of the other.
See original GitHub issueSeen in both 0.91 dev and 0.91 stable:
Steps to reproduce, in Firefox:
- Put two dtpickers on the page, instantiated however you like.
- Make the following call:
```
$("#first-time-picker").datetimepicker('option', 'minDate', null);
```
- If the second datetimepicker had a value equal to the empty string, then it will now receive the current datetime as its value, even though the call from step 2 (seemingly) makes no call to the second time picker. It should remain blank, as it does with the plain, old datepicker.
Issue Analytics
- State:
- Created 13 years ago
- Comments:21 (5 by maintainers)
Top Results From Across the Web
datetimepicker set min date for one datepicker based on ...
datetimepicker ({ format: 'DD/MM/YYYY', ignoreReadonly: true, defaultDate: new Date(), maxDate: new Date(), useCurrent: false }); $('#FromDate').
Read more >Set datepicker min date from another datepicker
Hi everyone, I have two datepickers that should work together as a From -> To range where the max date is always the...
Read more >Change Datepicker minDate onClick - jQuery Forum
I am looking for a way to change the minDate of my datepicker onClick. I have two buttons, one needs to set the...
Read more >How to Change Date range Dynamically in jQuery UI Datepicker
2. Dynamically set date range. # Method 1. Change the value of minDate and maxDate options. In the example, I initialized the datepicker...
Read more >datepicker mindate
To set the minimum date value of the DatePicker, you can use the minDate property ... In android DatePicker having two modes, first...
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
Just tried the 0.9.2 dev. Still no dice. Here is some pseudocode to reproduce:
When a date in #one is selected, the actual input value of #two is changing. I.e. the value in the input box. All that should change is the minimum date of the input.
Let me know if this doesn’t clarify things, Trent.
-Joseph
I just pulled from dev (0.9.4) and it looks like the onSelect function still has serious problems. Thanks to roker002 I discovered the beforeShow function. This has basically solved my problems as the date works correctly (I still have time issues):