Question: how to check dbnull for datetime in c#?
Answer: Employee objEmployee = new Employee() { EmployeeId = Convert. ToInt32(objReader["EmployeeId"]), Name = objReader["Name"]. ToString(), Gender = objReader["Gender"].