Check for null date value
I have a class with a property of type date. Since this is a value type, it can’t be set to null.
If the date value is not set, it is initialized with the smallest date possible: #12:00:00 AM#, which will always return false if you use isNothing.
Instead, compare the date to DateTime.MinValue
If clsDate.dateEquals = DateTime.MinValue Then
Trackback URI |