Reputation: 1935
I have a problem. In Windows Phone 8.1 project this code works but in Windows Azure Cloud Services project won't work. This code get date from xml.
DateTime date = DateTime.ParseExact(xn.ChildNodes[4].InnerText, "ddd, d MMM yyyy HH:mm:ss UT", System.Globalization.CultureInfo.CurrentCulture);
XML's date format is:
Sun, 29 Jun 2014 18:00:00 UT
Upvotes: 0
Views: 94
Reputation: 15354
You should use System.Globalization.CultureInfo.InvariantCulture
. Because it seems your current culture is tr-TR
and Sun
, Jun
is defined for English.
Upvotes: 1