Hi, <BR><BR>I'm using the calendar control in asp.net and want to force the calendar to select the current date. How do I insert the current date as a variable?<BR><BR><asp:Calendar id="MyCalendar" runat="server" <BR> selecteddate=????? <BR><BR>Martin <BR>MyCalendar.SelectedDate = DateTime.Now();<BR>in your page_load should work.James,<BR><BR>Tried your suggestion and I get the following error:<BR><BR>Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. <BR><BR>Parser Error Message: DateTime.Now(); is not a valid value for DateTime.<BR><BR>Source Error: <BR><BR><BR>Line 202: <form id="MyCalendarForm" method="post" runat="server"><BR>Line 203: <p align="center"><BR>Line 204: <asp:Calendar id="MyCalendar" runat="server"<BR>Line 205: selecteddate=DateTime.Now();<BR>Line 206: FirstDayOfWeek="Monday" <BR>You should asign it through your page load.<BR><BR>void Page_Load(object sender, EventArgs e)<BR>{<BR> if(!Page.IsPostBack)<BR> {<BR> MyCalendar.SelectedDate = DateTime.Now;<BR> }<BR>}<BR><BR>OR in VB<BR><BR>SUB Page_Load(sender as object, e as EventArgs)<BR>IF NOT page.ispostback THEN<BR>MyCalendar.SelectedDate = DateTime.Now()<BR>END IF<BR>END SUB<BR><BR>