V VB Programmer Mar 17, 2004 #1 I have a calendar control on my webform. How do I set the default date to be "3 months before today"?
I have a calendar control on my webform. How do I set the default date to be "3 months before today"?
R Raymond Lewallen Mar 17, 2004 #2 Programmer, Something like this: dtMyDate = DateAdd(DateInterval.Month,3,Now()) calControl.VisibleDate = dtMyDate calControl.SelectedDate = dtMyDate Where calControl is your calendar control. Hope this helps, Raymond Lewallen
Programmer, Something like this: dtMyDate = DateAdd(DateInterval.Month,3,Now()) calControl.VisibleDate = dtMyDate calControl.SelectedDate = dtMyDate Where calControl is your calendar control. Hope this helps, Raymond Lewallen