How set default date for calendar control?

  • Thread starter Thread starter VB Programmer
  • Start date Start date
V

VB Programmer

I have a calendar control on my webform. How do I set the default date to be
"3 months before today"?
 
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
 
Back
Top