In windows 7 am facing the below problem, when converting datetime.


Code:
?Convert.ToDateTime("7/15/2010 9:18:40 AM").ToString("dd-MMM-yyyy")
Run-time exception thrown : System.FormatException - String was not recognized as a valid DateTime.

is there any error in converting.