S
Sauthee
Guest
Hi all ,
On executing the below code
DateTime yesterday = Convert.ToDateTime("02-MAR-18 10:44:44 AM");
var dateTime = DateTime.ParseExact(yesterday.ToString(),"dd-MMM-yy hh:mm:ss tt",CultureInfo.InvariantCulture);
I get the error like the string is not in the valid format to convert to DateTime .
Would be really helpful if anyone could suggest me some ideas to get through this .
Thanks in advance
sauthee
Continue reading...
On executing the below code
DateTime yesterday = Convert.ToDateTime("02-MAR-18 10:44:44 AM");
var dateTime = DateTime.ParseExact(yesterday.ToString(),"dd-MMM-yy hh:mm:ss tt",CultureInfo.InvariantCulture);
I get the error like the string is not in the valid format to convert to DateTime .
Would be really helpful if anyone could suggest me some ideas to get through this .
Thanks in advance
sauthee
Continue reading...