how do I get the month of the carlendar comtrol when it's first loaded or month changed?

  • Thread starter Thread starter NotGiven
  • Start date Start date
N

NotGiven

I can get the month of the date selected but not when the claendar control
is first opened or when you go to the next or previous month.

I'm sure it's simple, thanks for any help!
 
hi
You can always use the SelectedDate.Date.Month.ToString() method to
get the month even out of the calendar control ; however , when the
calendar is first loaded, no date is selected. Still it is loaded
displaying the current months , you can get that using the
System.DateTime.Today.Month.ToString() method ,which will return the
current month ( the one that will be displayed when the calendar first
loaded.
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
 
Back
Top