DateTime 赋值 Null c#

 

使用c#向数据库插入控制,Convert.ToDateTime()报错,所以百度了一下,找到下面的使用日期空值的方法

 

Nullable<DateTime> DateTimeIsNull = null;

DateTime time;
time = DateTimeIsNull.Value;

posted on 2014-01-16 10:40  YoungPop_Chen  阅读(1144)  评论(0编辑  收藏  举报

导航