M
Mark Rae
Hi,
I have a class with several properties, one of which is of the DateTime
datatype. However, this property will not always have a value, and I need to
check later whether it has a value or not.
When I create a new instance of the class, this property acquires a default
value of {1/1/1}, which I don't want at all, as that is a perfectly valid
date.
Is there any way to cause a DateTime datatype to have no value at all, which
I can check later?
Or is the answer not to use a DataTime datatype and use a generic object
datatype instead?
Any assistance gratefully received.
Mark
I have a class with several properties, one of which is of the DateTime
datatype. However, this property will not always have a value, and I need to
check later whether it has a value or not.
When I create a new instance of the class, this property acquires a default
value of {1/1/1}, which I don't want at all, as that is a perfectly valid
date.
Is there any way to cause a DateTime datatype to have no value at all, which
I can check later?
Or is the answer not to use a DataTime datatype and use a generic object
datatype instead?
Any assistance gratefully received.
Mark