I need to set date range for my 2 input dates. I know that I can put min
and max
value for it but it will force me to pick a specific time range. What I want to achieve is to select any date in the first input and only a day within a 14 days range in the second input.
So for example I want to be able to pick 14.01.2014
- 28.01.2014
as well as 01.05.1992
- 15.05.1992
. Therefore i can't just use
<input type="date" />
<input type="date" max="{{ctrl.maxDate"}}/>
Do someone know how to dynamically set max value or is their a range attribute?