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

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

+4
source share
3 answers

I found one way to solve my problem using culture

System.Globalization.CultureInfo culInfo = new System.Globalization.CultureInfo("en-us"); System.Globalization.DateTimeFormatInfo dtinfo = new System.Globalization.DateTimeFormatInfo(); dtinfo.ShortDatePattern = "dd-Mon-yyyy"; dtinfo.DateSeparator = "-"; 

And apply this short date pattern to the time pick date. he works

+6
source

The datpicker in the WPF Toolkit allows only short and long formats. You can use as

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

If you change the format, follow this path. All controls have a DateTime value. I think you need to create a new template and create a new user control

-2
source

All Articles