System.Web.UI.WebControls Namespace Calendar Class
Sets or retrieves the date that is currently selected.
[ VB ]
Public Property SelectedDate As DateTime
[ C# ]
public DateTime SelectedDate {get; set;}
[ C++ ]
public: __property DateTime get_SelectedDate ( );
public: __property void set_SelectedDate ( DateTime );
[ JScript ]
public function get SelectedDate ( ) : DateTime;
public function set SelectedDate ( DateTime );
A System.DateTime that contains the date that is currently selected. The default is DateTime.Empty.
When programming, this property is set using a System.DateTime data type.
This property is only used when SelectionMode is set to CalendarSelectionMode.Day to store a single day. Otherwise SelectedDates is used to store multiple dates.
Navigating to the next or previous month will not update this property.
Calendar Members