You can use as follows:
DateTime? myDateField = (row["datefield"] == DBNull.Value) ? null : (DateTime?) DateTime.Parse(row["datefield"].ToString());
DateTime? myDateField = (row["datefield"] == DBNull.Value) ? null : (DateTime?) DateTime.Parse(row["datefield"].ToString());