Forum Moderators: open

Message Too Old, No Replies

ASP.NET Calendar Control

Get the current month that is being displayed

         

macrost

2:17 pm on Jan 5, 2006 (gmt 0)

10+ Year Member



I am needing to get the current month that is being displayed in the day render event, but if I use this:
e.Day.Date.Month.ToString, it gives me the previous month.

For example on calendar render, the current month is displayed, (Jan.) then I move to Feb but I'm still getting 1, instead of 2 like I want because I am showing previous and future month in the calendar.

Thanks!

macrost

2:52 pm on Jan 5, 2006 (gmt 0)

10+ Year Member



Ok, found it.

[msdn.microsoft.com...]