Hi,
I have below requirement
on page load I have set the Maxdate of the datepicker to today.. and I have some special days which are added when page load itself.
that was fine..
when i click on one button i need to do some changes to date picker at client side..
The main inportant thing is the Selected date must be today + 10 days ..which i am unable to with below code
1. Clear the special Days (working fine)
2.Set the MaxDate() which also seems to be working fine
3.Set the date using SetDate() which seems to be not working (with the max date greater than the max date defined on page load)
if i give SetDate as less than or equal to the Pageload the Maxdate it is working fine.
Please help me to set the date at client side ..
Please let me know if i am missing any thingelse
Thanks
-Krishna
I have below requirement
on page load I have set the Maxdate of the datepicker to today.. and I have some special days which are added when page load itself.
that was fine..
when i click on one button i need to do some changes to date picker at client side..
The main inportant thing is the Selected date must be today + 10 days ..which i am unable to with below code
var datpick1 = <%= datpick1.ClientID %>; |
var datpick2 = <%= datpick2.ClientID %>; |
var calendar2 = <%= datpick2.ClientID %>.GetCalendar(); |
calendar2.SpecialDays.Clear(); |
calendar2.SetMaxDate(datpick1.GetMaxDate());//datpick1.GetMaxDate() is 10 days greater than datpick2 max date |
var da = new Date(datpick1.GetMaxDate()); |
da.setDate(da.getDate()); |
calendar2.SetDate(da); |
1. Clear the special Days (working fine)
2.Set the MaxDate() which also seems to be working fine
3.Set the date using SetDate() which seems to be not working (with the max date greater than the max date defined on page load)
if i give SetDate as less than or equal to the Pageload the Maxdate it is working fine.
Please help me to set the date at client side ..
Please let me know if i am missing any thingelse
Thanks
-Krishna