ITMikeK
asked on
Handleing NULLs when performing a comparison between two datetime fields
I have a GridView being populated using a SPROC in SQL SERVER 2008 in an ASP.NET app.
In the grid two fields are being compared.
PromisedDate and ShippedDate
both are datetime
If ShippedDate>PromisedDate the color of the background of that record is changed to red.
Up to this point the PromisedDate has not been used, and there are lots of 'NULL' records.
How can I handle the NULLs in this situation of a datetime?
In the grid two fields are being compared.
PromisedDate and ShippedDate
both are datetime
If ShippedDate>PromisedDate the color of the background of that record is changed to red.
Up to this point the PromisedDate has not been used, and there are lots of 'NULL' records.
How can I handle the NULLs in this situation of a datetime?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This will also prevent future squabbles when dealing with that field in the future.