Hey guys help me pls, i want to format datetime of 8/26/2012 6:59:40 PM to this 2012-08-26 19:43:39 so that i could insert it to mysql database. In C# code pls
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
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 attend4days leftRegister
VulpesRank #55 · 29.2K reputationPosted Aug 26, 2012, 5:02 AM EDT
string date = dt.ToString("yyyy-MM-dd HH:mm:ss");