if (Birthday == DateTime.MinValue) { //u can do something here }
首先确保Birthday是不可为null的日期类型。如果可为null就不需要这么判断了,直接Birthday == null就行了。