A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
Both MS Excel and SQL Server stores dates as numeric values and calculate the date on the fly.
But both use different zero-bases, you see it when you convert numeric 0 to a date; then return different dates.