System.Web.UI.WebControls.MonthChangedEventArgs.NewDate Property

Gets the date that determines the currently displayed month in the System.Web.UI.WebControls.Calendar control.

Syntax

public DateTime NewDate { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use this property to get the month currently displayed by the System.Web.UI.WebControls.Calendar control and to compare the currently displayed month with another month. For example, you can use this property to calculate the number of months until or since a certain date.

This date is normally the first date of the currently displayed month; however, it can be programmatically changed to any date within the month.

The Calendar.VisibleDate property can be assigned to this property programmatically to override the month change when the user clicks the navigation controls for the System.Web.UI.WebControls.Calendar control.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0