I already posted a similar question but here I have a slightly different problem with it. Situation in WP7.1 app:
CultureInfo = new CultureInfo("es");
If culture info is set to es (es-ES works fine but that cannot be the solution to hardcode that) than DateTimeFormat of current culture (Thread.CurrentThread.CurrentCulture.DateTimeFormat) is null (throwing the IndexOutOfRangeException) causing simple DateTime.ToString() to fail with the same exception.
I need to make it work. I might be presuming something from above wrong, which I kind of hope that I do. Could someone either help me make it work, or point me to some msdn explaining it will not work ?
Thanks, Michal
I don't believe WP7.1 supports just 'es' for the culture code. See this link: http://msdn.microsoft.com/en-us/library/hh202918%28v=VS.92%29.aspx