ChewDoggie
Programmer
G'morning,
I have a SQL field "TermDate" of type "date" and the value of which can be null.
I have an object called Assoc that has a TermDate property of type DateTime. When I atempt to load the object with the values from the DB, it barfs when it encounters the DB's null value in the date field.
I thought about setting the TermDate Property to type string, but that involves all sorts of converting to DateTime and then back to a string again all over the place.
Can anyone give some advice about how to handle this?
Thanks!
Chew
10% of your life is what happens to you. 90% of your life is how you deal with it.
I have a SQL field "TermDate" of type "date" and the value of which can be null.
I have an object called Assoc that has a TermDate property of type DateTime. When I atempt to load the object with the values from the DB, it barfs when it encounters the DB's null value in the date field.
I thought about setting the TermDate Property to type string, but that involves all sorts of converting to DateTime and then back to a string again all over the place.
Can anyone give some advice about how to handle this?
Thanks!
Chew
10% of your life is what happens to you. 90% of your life is how you deal with it.