ASP.NET VisibleDate Attribute

Definition and Usage

The VisibleDate property is used to set or get the date of the month to be displayed on the Calendar control.

Example

The following example sets the VisibleDate to 01-Oct-07:

<script runat="server">
Sub Page_Load
  cal1.VisibleDate = DateValue("01-Oct-07")
End Sub
</script>
<form runat="server">
  <asp:Calendar id="cal1" runat="server" />
</form>

Example

Select the Month to Display in the Calendar Control