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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Santhosh KPosted Jul 16, 2014, 2:51 AM
Khan Abrar AhmedPosted Jul 16, 2014, 2:41 AM
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);