An exception of type 'System.FormatException' occurred in mscorlib.dll but was not handled in user code
error is above
In this line
cmd.Parameters.AddWithValue("@EMP_ATTENDANCE", Convert.ToDateTime(txt_attendance.Text));
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
Mohsin ArifRank #732 · 3.2K reputationPosted Apr 28, 2019, 10:01 PM EDT