WPF Toolkit, How to apply date format in C# for datepicker control?

后端 未结 3 420
离开以前
离开以前 2021-01-20 00:07

WPF Toolkit, How to apply date format in C# for datepicker control?

3条回答
  •  余生分开走
    2021-01-20 01:06

    The datepicker in WPF Toolkit allow only Short and Long formats. You can use as

    datePicker.SelectedDateFormat = Microsoft.Windows.Controls.DatePickerFormat.Long;
    datePicker.SelectedDateFormat = Microsoft.Windows.Controls.DatePickerFormat.Short;
    

提交回复
热议问题