Simple Calendar using

This example will display a simple but neat calendar on your web site.

A couple of things are worth looking at here the first is the DayHeaderStyle which sets the color of the days running along the top of your calendar, in this case it is set for blue. The next attribute to notice is the TodayDayStyle which in this case is setting the background color of today’s date to green, which in effect highlights it in green in this case.



<form runat="server">
<asp:Calendar DayNameFormat="Full" runat="server">
<DayHeaderStyle ForeColor="#0000ff" />
<TodayDayStyle BackColor="#00ff00" />