Closed leena-tr closed 7 years ago
min-hour
and max-hour
is designed to limit time in any date.
For example, when we pick a work-hour time, we can set it as 9 to 5 rather than 0-23.
It is not designed to reflect current time or future time. It's for past, current, and the future. There is no such thing as min-hour for today, and min-hour tomorrow at this moment.
If I did not fully understand what you expect, please explain what it currently does and what it should be.
Closing for inactivity
I need to update min hour in datetimepicker on date change.
For eg : If I choose today's date then min-hour should be equal to current time.
Today date : 27-02-2017 current time: 6:00 then as I select 27-02-2017 then min-hour should set to 6 so that user can't choose past time.
If I choose 28-02-2017 then min-hour should be 0.
Issue is that when I open datetimepicker first it show current date with current time that's correct. then I choose future date then still it shows min hour = current time instead 0, then If I close datetimepicker and open it again then it shows 0 for future date. My changes for minHour are not reflecting until we close datetimepicker.
Here is plunker :
https://plnkr.co/edit/fU0pBuxxdwbdHOgYidmI?p=preview
Thanks in advance.