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

c++datepickerwpfwpftoolkit

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

Best Solution

I found the one way to solve of my problem by using the 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 date time picker.. It works