Understanding the Two Digit Year Cutoff in SQL Server
By default the two digit year cutoff in SQL Server is set to 2049, which means if you supply a date with a two digit year it uses 2049 as the dividing line to determine if it should prepend '19' or '20' to the year you provided. You can change this, and in some cases you might have to, but relying on it is tricky, it's an instance wide setting that someone might change to fix something else. It's important to know about it, but play it safe - use four digit years.
|