Converts a period value to a DATE value.
ANSI Compliance
This statement is ANSI SQL:2011 compliant.
As an extension to ANSI, CAST permits the use of DATE data attribute phrases.
Syntax
CAST ( period_expression AS DATE [ data_attribute [...] ] )
Syntax Elements
- period_expression
The Period expression to be converted.
- data_attribute
- One of the following data attributes:
- FORMAT
- NAMED
- TITLE