asp.net.ph

Calendar.SelectedDate Property

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 );

Property Value

A System.DateTime that contains the date that is currently selected. The default is DateTime.Empty.

Remarks

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.

See Also

Calendar Members Skip Navigation Links




Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note