how to convert string "12/15/2010" to DateTime without any otomatic addition "12:00:00 AM"
I ask this question because I am trying to use MySql and MySql seem does not understand this format.
thank you in advance
denny
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sam HobbsPosted Dec 27, 2010, 12:30 AM
FroglegPosted Dec 26, 2010, 4:08 AM
string date = "12/15/2010";
DateTime dt = Convert.ToDateTime(date);