JL.
JL.

Reputation: 81372

absolute min date

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.

Upvotes: 1

Views: 3950

Answers (3)

DanDan
DanDan

Reputation: 10562

A newly constructed DateTime object also handily constructs by default to MinValue.

Upvotes: 7

Mitchel Sellers
Mitchel Sellers

Reputation: 63136

DateTime myDate = DateTime.MinValue;

Upvotes: 3

JaredPar
JaredPar

Reputation: 755587

Try DateTime.MinValue. This is the lowest possible value for a DateTime instance in the CLR. It is a language independent value.

Upvotes: 20

Related Questions