IsEmptyDate DateTime(?)

.IsEmptyDate()

Test to see if a DateTime value is "1 Jan 1900" and so empty but does not test for null.

Method

public static bool IsEmptyDate(this DateTime dt)
public static bool IsEmptyDate(this DateTime? dt)
DateTime dt

DateTime to check for empty value.

Example

C#
bool b = new DateTime(1, 1, 1).IsEmptyDate();