For political correctness, I would like to know if there is a way to instantiate a date so that it contains the lowest date value possible in c# net v2.
+18
A:
Try DateTime.MinValue. This is the lowest possible value for a DateTime instance in the CLR. It is a language independent value.
JaredPar
2009-07-29 16:03:48
thanks, exactly what I wanted. no way records could possibly have been created before time itself :)
JL
2009-07-29 16:05:17
You'll find most value types have similar, useful static properties like this.
Dan Diplo
2009-07-29 16:10:40
+7
A:
A newly constructed DateTime object also handily constructs by default to MinValue.
DanDan
2009-07-29 16:07:02