我不知道你的空值是指什么?
DateTime dt = new DateTime(1,1,1,0,0,0,0);
Console.WriteLine(dt.Millisecond);
除了年月日不可以设为0外其它的小时,分钟,秒之类都可以设为0
参看MSDN:ms-help://MS.VSCC/MS.MSDNVS.2052/cpref/html/frlrfSystemDateTimeClassctorTopic.htm
DateTime dt = new DateTime(1,1,1,0,0,0,0);
Console.WriteLine(dt.Millisecond);
除了年月日不可以设为0外其它的小时,分钟,秒之类都可以设为0
参看MSDN:ms-help://MS.VSCC/MS.MSDNVS.2052/cpref/html/frlrfSystemDateTimeClassctorTopic.htm
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货