This statement is ANSI SQL:2011 compliant. As an extension to ANSI, CAST permits the use of DATE data attribute phrases.