WPF Toolkit, How to apply date format in C# for datepicker control?
A:
Take a look at http://windowsclient.net/wpf/wpf35/wpf-35sp1-toolkit-calendar-datepicker-walkthrough.aspx
adatapost
2009-09-04 10:50:10
A:
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;
Sauron
2009-09-04 10:56:25
these are system defined .. we require custom date format
Jaswant Agarwal
2009-09-04 12:00:00
A:
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
Jaswant Agarwal
2009-09-07 11:12:15
A:
And apply this short date pattern to date time picker..it works
How can I do it?
Kamilos
2009-09-22 13:15:43