For some reason the following queries return the same result, even though they shouldn't
SELECT CONVERT(DATE, GETDATE(),101)
SELECT CONVERT(DATE, GETDATE(),102)
SELECT CONVERT(DATE, GETDATE(),103)
SELECT CONVERT(DATE, GETDATE(),104)
SELECT CONVERT(DATE, GETDATE(),105)-- Ad Infinitum (Tested up to 140)
Result
2014-10-07
Just in case today's date is 7-Oct-2014
- According to http://msdn.microsoft.com/es-es/library/ms187928.aspx there should only be 131 styles, IS the fact that I did NOT get an error with 132-140 related?
Technically I installed SQL Server 2014 in US-English and TRIED to change it using
set dateformat dmy
But I don't know whether it made a difference or not.
Did I screw up my install, should I repair it, uninstall and reinstall, format my machine altogether or is it not related.
First question posted, I believe I followed the rules, as I understood them, If I made a mistake, please do tell me.
Edit:
SELECT CAST (GETDATE() AS DATE)
Has the same result.