Hi, I have two calendars, the second one depends on the first calendar.
my case is the next one:
I select a date from the second calendar.
example 2019/01/16 <- this date has to be longer by 7 days than the first date. but I have not selected the first date yet.
when I select the date from the first calendar and i select 2019/01/16, i set the min value in the second calendar to 2019/01/16 plus 7 days.
I just set the min value in the second calendar. but I still watching the 2019/01/16 in both calendar.
this is ok.
I expect that.
i want to validate this dates before been sending to the database.
this is the problem. when i get
firstdate.get('selected'); <- this returns the expected value "2019/01/16"
seconddate.get('selected'); <- this returns the value that i set in min. 2019/01/16 + 7 days = 2019/01/23. but in the input field i still get the 2019/01/16 and i expected that value.
something feedback to get the value in the input field and not the min value that i set previously.
Hi, I have two calendars, the second one depends on the first calendar. my case is the next one:
I select a date from the second calendar. example 2019/01/16 <- this date has to be longer by 7 days than the first date. but I have not selected the first date yet.
when I select the date from the first calendar and i select 2019/01/16, i set the min value in the second calendar to 2019/01/16 plus 7 days.
I just set the min value in the second calendar. but I still watching the 2019/01/16 in both calendar.
this is ok.
I expect that.
i want to validate this dates before been sending to the database. this is the problem. when i get
firstdate.get('selected'); <- this returns the expected value "2019/01/16" seconddate.get('selected'); <- this returns the value that i set in min. 2019/01/16 + 7 days = 2019/01/23. but in the input field i still get the 2019/01/16 and i expected that value.
something feedback to get the value in the input field and not the min value that i set previously.
regars