on 10-15-2019 3:49 PM
Hello,
look the Code below
this.byId("FirstCalendar").getDateValue().getMonth()
3
this.byId("SecondCalendar").getDateValue().getMonth()
3
this.byId("SecondCalendar").getDateValue().setMonth(this.byId("FirstCalendar").getDateValue().getMonth()+3)
1627084800000
this.byId("SecondCalendar").getDateValue().getMonth()
6
this.byId("FirstCalendar").getDateValue().getMonth()
6
.setMonth, changes the month of both Calendars for no reason.
Why do you think that is the Case?
Hi Roman,
Which control are you using for Calendar ?
I tried the same for DatePicker control and it works as expected.
Only the month of secondDatePicker is updated.
May be you were testing the output using browser console and reference of first calendar was updated by your code as well.
Thanks,
Vaibhav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.