CalendarDatePicker.DateFormat Property


Gets or sets the display format for the date value in the picker's text box.

Equivalent WinUI property: Microsoft.UI.Xaml.Controls.CalendarDatePicker.DateFormat.

 property Platform::String ^ DateFormat { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring DateFormat();

void DateFormat(winrt::hstring value);
public string DateFormat { get; set; }
var string = calendarDatePicker.dateFormat;
calendarDatePicker.dateFormat = string;
Public Property DateFormat As String
<CalendarDatePicker DateFormat="formatString"/>

Property Value


The string format to use to display the date in the picker's text box.

Applies to