Arithmetic overflow error converting expression to data type datetime.
What I have tried:
SqlCommand cmd1 = new SqlCommand("insert into Attendence values(@Engi_Profile_ID,@In_Date_Time,@In_Date_Only,@Out_Date_Time,@Reason,@Remark,@Flag)", con);
{
SqlCommand cmd1 = new SqlCommand("insert into Attendence values(@Engi_Profile_ID,@In_Date_Time,@In_Date_Only,@Out_Date_Time,@Reason,@Remark,@Flag)", con);
cmd1.Parameters.AddWithValue("@Engi_Profile_ID", txtID.Text.ToString());
}
cmd1.ExecuteNonQuery(); then give error actually Arithmetic overflow error converting expression to data type datetime.