Converting string to Datetime
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.