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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top