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

VulpesRank #55 · 29.2K reputationPosted Jun 3, 2012, 1:01 AM EDT
http://msdn.microsoft.com/en-us/library/9xk1h71t.aspx
mithun kumar20 reputationPosted Jun 3, 2012, 1:30 AM EDT
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.
VulpesRank #55 · 29.2K reputationPosted Jun 3, 2012, 3:51 AM EDT