Re: datetime C# equvalent
I don't think there is one. I normally set a static global variable to the "1753" date and just use that when instantiating dates.
Re: datetime C# equvalent
Quote:
Originally Posted by
eclipsed4utoo
I don't think there is one. I normally set a static global variable to the "1753" date and just use that when instantiating dates.
like this
new Datetime("1973") ?
Re: datetime C# equvalent
no, like
Code:
Convert.ToDateTime("1/1/1753 12:00:00 AM");
Re: datetime C# equvalent
Re: datetime C# equvalent
DateTime maps to SQL's datetime, but the valid range is different. To initialize a DateTime with the minimum value use:
System.Data.SqlTypes.SqlDateTime.MinValue.Value