DatePicker.DisplayDate Property

Gets or sets the date to display.

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls (in System.Windows.Controls.dll)


<TypeConverterAttribute(GetType(DateTimeTypeConverter))> _
Public Property DisplayDate As DateTime
public DateTime DisplayDate { get; set; }
<sdk:DatePicker DisplayDate="dateTimeString"/>

XAML Values

  • dateTimeString
    A date specified in the format yyyy/mm/dd. The mm and dd components must always consist of two characters, with a leading zero if necessary. For instance, the month of May should be specified as 05.

Property Value

Type: System.DateTime
The date to display. The default is Today.


Exception Condition

The specified date is not in the range defined by DisplayDateStart. and DisplayDateEnd.


Dependency property identifier field: DisplayDateProperty

This property allows the developer to specify a date to display. If this property is nulla null reference (Nothing in Visual Basic), SelectedDate is displayed. If SelectedDate is also nulla null reference (Nothing in Visual Basic), Today is displayed.

Version Information


Supported in: 5, 4, 3


For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.