SqlParameter p4 =new SqlParameter("@时间",DateTime.Now.ToLocalTime());上面这句错误,你只要写DateTime。now就可以了,不要tostring了哦