Thursday, April 05, 2007

The weird .NET Date

Dim de As Date = Nothing
If de = Date.MinValue Then
MessageBox.Show("it is min value!")
End If

It explains well... the Date object can never be Nothing, this affects a lot during implementation if the business logic allows "undefined" date. Dataset uses DBNull to tackle the issue.

regards,
choongseng

No comments: