I have a table in which there are some datetime type columns. I use a stored procedure to insert values into the table. In the stored procedure I have variables that accept null
Try something like this, using Add rather than AddWithValue..
DB.Parameters.Add("@date", SqlDbType.DateTime).Value = DBNull.Value;