There is a standard way to represent TSQL Minimum Date in ASP.NET

I want to initialize a DateTime object to the lowest possible date in TSQL.
(as you all know him 1/1/1753)

Is there a standard way to represent this date in ASP.NET?
I mean doing something like DateTime.SQLMinValue(this does not exist) instead of doing new DateTime(year, month, date)?

If so, send it, thanks!

+3
source share
2 answers
System.Data.SqlTypes.SqlDateTime.MinValue;

... and the MSDN documentation for reference.

+9
source

EDIT: , .

+1

Source: https://habr.com/ru/post/1724966/


All Articles