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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sam HobbsRank #107 · 20.5K reputationPosted Dec 26, 2010, 7:30 PM EST
FroglegRank #1,020 · 1.9K reputationPosted Dec 25, 2010, 11:08 PM EST
string date = "12/15/2010";
DateTime dt = Convert.ToDateTime(date);