datagrid xml:lang="en-GB" not working

Jun 23, 2009 at 4:58 PM
Edited Jun 23, 2009 at 5:01 PM

I am trying to use date formats like dd-MMM-yyyy in the datepicker and datagrid. I understand I have to put in xml:lang="en-GB" in the elements to make it work. I have tried it out like below, but it is still showing dates in us format mm/dd/yyyy.

Can someone please help?


<my:DataGridTemplateColumn Header="date" SortMemberPath="date" Width="90" MaxWidth="90">
            <my:DatePicker xml:lang="en-GB" SelectedDate="{Binding Path=date}" SelectedDateFormat="Short" />
            <TextBlock Text="{Binding Path=date, StringFormat='{}{0:dd-MMM-yyyy}'}" Width="90" MaxWidth="90" />