public static DateTime CheckNullDateTime(this SqlDataReader dr, int ordinal) { return dr.IsDBNull(ordinal) ? default(DateTime) : dr.GetDateTime(ordinal); }
Login to post response