ASP.NET Calendar - Knowledge Base

« Back to Knowledge Base list

Force the month that is being displayed to be the SelectedDate month

Q:

Is there any way to force the month that is being displayed to be the SelectedDate month?

A:

You just need to use server property DateFirstMonth.
DateFirstMonth is a DateTime value representing the first month to show in the calendar.
If not defined, then the value from DateToday is used.