I have what seems to be a good solution for this that requires a patch for EasyObject.cs:
Change the property StringFormat to:
- Code: Select all
public string StringFormat = CultureInfo.CurrentUICulture.DateTimeFormat.ShortDatePattern;
There is a rogue ToString(\"MM/dd/yyyy\") in GetItemString() which I guess needs to be changed to use this.StringFormat.
Then either set the server ShortDate pattern as you want or in the application create a clone of the CurrentUICulture and set the ShortDatePattern there before resetting the current thread's CurrentUICulture:
- Code: Select all
CultureInfo vNewCulture = (CultureInfo);
Thread.CurrentThread.CurrentUICulture.Clone();
vNewCulture.DateTimeFormat.ShortDatePattern = \"yyyy-MM-dd\";
vNewCulture.DateTimeFormat.DateSeparator = \"-\";
Thread.CurrentThread.CurrentUICulture = vNewCulture;
Kudos to Peter Blum for this last piece of code:
http://forums.asp.net/p/1223734/2190227.aspx