Hi,
As the Date.Parse function works only if the input date is in between 1957 to 2012 roughly I want to change this to according to my requirement is it possible ? if so how can I achieve this.??
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Khan Abrar AhmedRank #778 · 3K reputationPosted Jul 15, 2014, 10:41 PM EDT
string dateString = "Tue 16 Jun 8:30 AM 2014"; //
string format = "ddd dd MMM h:mm tt yyyy";
DateTime dateTime = DateTime.ParseExact(dateString, format, CultureInfo.InvariantCulture);
Santhosh K28 reputationPosted Jul 15, 2014, 10:51 PM EDT