📅  最后修改于: 2022-03-11 14:49:13.847000             🧑  作者: Mango
object sqlDateTime = sqldatareader[0];
DateTime? dt = (sqlDateTime == System.DBNull.Value)
? (DateTime?)null
: Convert.ToDateTime(sqlDateTime);