DateTime dt=new DateTime();
string strdt = txtpfdate.Text.Trim();
dt = Convert.ToDateTime(strdt);
objAdmin.ProductFinishDate = Convert.ToDateTime(dt);
Why are you converting a DateTime to a DateTime?
The error will occur if the textbox format is not correct for the current regional time format settings. Basically, if the user gets it wrong. Instead of using
Convert.ToDateTime(string)
consider using DateTime.TryParse which returns a bool for success / fail. You can then report the error and stop what you are doing until he gets it right.
MSDN[
^]