Datetime format error
DateTime frmDate = DateTime.ParseExact(txtfrmDt.Text, "yyyy/M/d HH:mm:ss tt", CultureInfo.InvariantCulture);
3 Answers
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 attend5days leftRegister
Scott LysleRank #49 · 31K reputationPosted Aug 2, 2013, 4:21 AM EDT
Khargesh RajputRank #616 · 3.9K reputationPosted Aug 3, 2013, 12:15 AM EDT
I have change datatime datatype to varchar and then it is working.
if anybody has solution please help
Sunny SharmaRank #223 · 11.1K reputationPosted Aug 3, 2013, 12:27 AM EDT
See the answer by Scott Lysle, it works.