I'm having some very strange date formatting issues in a Silverlight application. My local culture is tuned to the UK, but I constantly see American dates popping up everywhere. I can easily hard-code them in the UK format in certain expressions using:
<UserControl ... Language="en-GB"...>
But, as I am sure, you will all agree that this is a terrible thing.
I tried installing Lanaguage on en-GB in the main application, and this has partial success. I also tried the Justin Angels suggestion (published here: How to change the date format in a Silverlight DatePicker control? ), Again only partial success.
An example of a problem can be seen here:
http://lh3.ggpht.com/%5FL9TmtwXFtew/Sw5aVZJfG1I/AAAAAAAAGkI/6jYnsB91HjI/image%5Fthumb%5B1%5D.png http://lh3.ggpht.com/%5FL9TmtwXFtew/Sw5aVZJfG1I/AAAAAAAAGkI/6jYnsB91HjI/image%5Fthumb % 5B1% 5D.png
In a datagrid, the parent page displays formatting in the UK, while information in ChildWindow shows formatting in the US ... grrrr
Does anyone have a final solution to solve this problem throughout the application?
Thanks Mark
SelectedDateFormat datepicker? , usercontrol, , ?
,
Dan
. :
UI Silverlight
, ? IE Tools → → .
. .
Thread.CurrentThread.CurrentCulture = (CultureInfo)Thread.CurrentThread.CurrentCulture.Clone(); Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern = dd/MM/yyyy";
Source: https://habr.com/ru/post/1723985/More articles:How to get the arch string that distutils uses to build? - pythonExport custom Sharepoint list options - sharepointPHP script stops processing warning error? - phpPartial SVN Branch - branchHow to open pdf embedded in windows.forms.webbrowser management in VISTA - browserWindows 7 GUI Link - c ++The fragment (anchor #) in .NET 4 WebBrowser Control is lost using Adobe PDF Reader and the file: // - parameter-passingManaging an asp.net web server with child controls, an event that does not fire - asp.netStore password field in encryption form using MySQL and Hibernate - javaТакое же имя свойства, но другой тип возврата в общем списке - collectionsAll Articles