Datetime format error
DateTime frmDate = DateTime.ParseExact(txtfrmDt.Text, "yyyy/M/d HH:mm:ss tt", CultureInfo.InvariantCulture);
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 2, 2013, 4:27 AM EDT
DateTime frmDate = DateTime.ParseExact(txtfrmDt.Text, "yyyy/M/d hh:mm:ss tt", CultureInfo.InvariantCulture);