Hello Friends,
I have two Datetime as string and trying to convert this string to Datetime as follows:
DateTime Dt = Convert.ToDateTime(sEstDate);
string sDt = Dt.ToString("dd-MM-yyyy HH:mm:ss");
DateTime dtt = Convert.ToDateTime(sDt);
But its giving me the Error:
"String was not recognized as a valid Datetime"
Thanks & Regards,
Mithun.
Loading
VulpesPosted Jun 3, 2012, 7:51 AM
mithun kumarPosted Jun 3, 2012, 5:30 AM
The same code is working with my PC, but when i uploaded into the server its giving me the error.I check the server Datatime configuraion, it i same as my PC.
Thanks & Regards,
Mithun.
VulpesPosted Jun 3, 2012, 5:01 AM
http://msdn.microsoft.com/en-us/library/9xk1h71t.aspx