Setting the Display Format of RadDatePicker's TextBox
Environment
Product | RadDatePicker for WPF |
Version | 2024.3.821 |
Description
How to change the default date-time format for the selected date in RadDatePicker.
Solution
You can assign the Culture
property of the RadDatePicker. This way you can use the DateTimeFormat
of the CultureInfo
object.
var culture = (CultureInfo)Thread.CurrentThread.CurrentCulture.Clone();
culture.DateTimeFormat.ShortDatePattern = "MM/dd/yyyy";
this.radDatePicker.Culture = culture;