两种情况:1 DateTime? dtTemp = null;if(dtTime != null){//wawawa}刚刚学会的,可空值类型,可判断是否赋值2 DateTime dtTemp;if(dtTemp > DateTime.MinValue){//hhh}