I have a date "Wed, Nov 25" and would like to convert it to 2015-11-25 How could I do that?
I have a date "Wed, Nov 25" and would like to convert it to 2015-11-25 How could I do that?
string strData = "qua, nov 25, 2015";
CultureInfo provider = CultureInfo.GetCultureInfo("pt");
string formato = "ddd, MMM dd, yyyy";
DateTime data = new DateTime();
DateTime.TryParseExact(strData, formato, provider, DateTimeStyles.None, out data);