Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DatePicker and Date Format
Message
De
17/12/2012 10:18:48
 
 
À
17/12/2012 09:50:27
Information générale
Forum:
ASP.NET
Catégorie:
Windows Presentation Foundation (WPF)
Divers
Thread ID:
01559889
Message ID:
01559892
Vues:
39
>Hi,
>
>Using .Net 4.0 XAML and C#
>
>
><TextBox Grid.Column="3" Grid.RowSpan="1" Margin="0" Name="txtIssue" Text="{Binding cus_issue, StringFormat=d, Mode=Default}" HorizontalAlignment="Stretch" VerticalAlignment="Center" />
>
>If I have a date like 30th October 1998 it displays in the textbox like 10/30/1998 which is incorrect according to my culture settings. It should be 30/10/1998.
>
>I don't believe that my code sets any culture specific layout for dates, but I am using a framework (Mere Mortals .NET) so do not know everything about it.
>
>Can someone tell me what I should be looking for that controls this setting?

Apparently 'by design' :-{

One fix : http://www.nbdtech.com/Blog/archive/2009/02/22/wpf-data-binding-cheat-sheet-update-the-internationalization-fix.aspx
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform