2
Answers

Problem in using the method Convert.ToDateTime(string) Please help me.

Ravinder Reddy

Ravinder Reddy

17y
7.2k
1
Hi All,

                I have a string s that is "10/29/2006". I want to convert this string to datetime format.

 used the method

                          DateTime dt=System.Convert.ToDateTime(s);



                                 But it is giving an error "string was not recognised as a valid datetime. Please help me out.

Answers (2)