joe_pool_is
Contributor
How do I check for an uninitialized DateTime?
If I start my code by simply declaring a DateTime value:
DateTime time1;
Then the compiler gives me the error that the field was uninitialized.
Seting the DateTime value to null is not legal though, it seems:
DateTime time1 = null;
How am I supposed to be initializing a DateTime value?
If I start my code by simply declaring a DateTime value:
DateTime time1;
Then the compiler gives me the error that the field was uninitialized.
Seting the DateTime value to null is not legal though, it seems:
DateTime time1 = null;
How am I supposed to be initializing a DateTime value?