Culture Support in WPF DateTimePicker (DateTimeEdit)

DateTimeEdit control provides globalization support through theĀ CultureInfo property.

<syncfusion:DateTimeEdit x:Name="dateTimeEdit" Height="25" Width="200" DateTime="07/15/2010" Pattern="LongDate" CultureInfo="en-US"/>
Syncfusion.Windows.Shared.DateTimeEdit dateTimeEdit = new Syncfusion.Windows.Shared.DateTimeEdit();
dateTimeEdit.Width = 200;
dateTimeEdit.Height = 25;
dateTimeEdit.DateTime = new DateTime(2010, 07, 05);
dateTimeEdit.Pattern = DateTimePattern.LongDate;
dateTimeEdit.CultureInfo = new CultureInfo("en-US");

Culture support

<syncfusion:DateTimeEdit x:Name="dateTimeEdit" Height="25" Width="200" DateTime="07/15/2010" Pattern="LongDate" CultureInfo="fr-FR"/>
Syncfusion.Windows.Shared.DateTimeEdit dateTimeEdit = new  Syncfusion.Windows.Shared.DateTimeEdit();
dateTimeEdit.Width = 200;
dateTimeEdit.Height = 25;
dateTimeEdit.DateTime = new DateTime(2010, 07, 05);
dateTimeEdit.Pattern = DateTimePattern.LongDate;
dateTimeEdit.CultureInfo = new CultureInfo("fr-FR");

Culture support

As you have seen in these samples whenever you change the Culture property the Date is displayed based on the Culture.