I am looking for a SQL Server function to return the minimum value for datetime, namely January 1, 1753. I\'d rather not hardcode that date value into my script.
Does an
Enter the date as a native value 'yyyymmdd' to avoid regional issues:
'yyyymmdd'
select cast('17530101' as datetime)
Yes, it would be great if TSQL had MinDate() = '00010101', but no such luck.
MinDate() = '00010101'