Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question on interpreting 'blank dates' from SQL Server..
Message
 
To
11/03/2003 15:32:10
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
00763094
Message ID:
00764430
Views:
22
Is there a reason you would not just use a null value?

>Wayne,
>
>>>What happens if you really do need to store 1/1/1900 in the table?<
>
>Good question ... probably use the time component of the datetime field to further determine whether it's a valid date or not. The time (something other than midnite) would be something you'd have to consciously put into the column.
>
>~~Bonnie
>
>
>>
>>>
>>>We handle it this way: we leave the data as is in the table, but handle how it's displayed in a custom date control. You *do* still have to write code that checks for that, but you do it only when it's displayed in the UI.
>>>
>>>~~Bonnie
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform