'YYYYMMDD' and 'YYYY-MM-DD' are valid ANSI date strings.
BOL: "
YYYY-MM-DD | 0001-01-01 through 9999-12-31 | 1 day | 3 | No | No |
"
LINK: http://technet.microsoft.com/en-us/library/ms186724.aspx
I received comments in some threads that 'YYYY-MM-DD' should not be used with reference to Tibor's blog:http://www.karaszi.com/sqlserver/info_datetime.asp
I am looking for a proof if indeed 'YYYY-MM-DD' should not be used. Thanks.
Kalman Toth Database & OLAP Architect
IPAD SELECT Query Video Tutorial 3.5 Hours
New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012