判断日期类型为空的情况

 

if (model.Pick_Up_Time.ToString() == "0001-1-1 0:00:00")

            {

                parameters[2].Value = System.DBNull.Value;

            }

            else

            {

                parameters[2].Value = model.Pick_Up_Time;

            }

posted @ 2008-09-16 10:54  HIT上帝视角  阅读(543)  评论(0编辑  收藏  举报