Calendar?

  • Thread starter Thread starter LL
  • Start date Start date
L

LL

I have set the date during the form loading: MyDate.SelectedDate =
DateTime.Now(); // 08/08/2004

But it's now showing by default. I need to navigate to 2004 August, and then
I can see it.

How to set it as default date?

Thanks..
 
Just add:
MyDate.VisibleDate = DateTime.Now();

When you set the SelectedDate (the date really selected), it doesn't change
the VisibleDate (the month shown), which remains to the current date. That's
why you also need to update the VisibleDate.
 
Back
Top