Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning Date values that are NULL
Message
From
02/05/2006 11:04:04
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
01118409
Message ID:
01118432
Views:
20
>Actually, null dates can exist in SQL Server. Empty dates are what do not exist in SQL Server. And, yes, those do get translated to a very early date value in standard import translations.

I thought about it visually where the result cannot be shown empty. :)

For a universal way, I use this function in .NET to verify if a date is empty:
        ' Return True if a date is empty
        ' expT1 Date
        Public Function EmptyDate(ByVal tdDate As Date) As Boolean
            Dim llEmpty As Boolean
            Dim ldDate As Date
            llEmpty = False
            ldDate = New Date(1899, 12, 30)
            If tdDate = ldDate Then
                llEmpty = True
            End If
            Return llEmpty
        End Function
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform