Casts as PERIOD(DATE) or PERIOD(TIMESTAMP[(n)] [WITH TIME ZONE]).
CAST Syntax
CAST ( date_expression AS period_data_type [ data_attribute [...] ] )
- date_expression
-
A date expression to be converted.
- period_data_type
-
The data type to which the expression is to be converted.
- data_attribute
- One of the following data attributes:
- FORMAT
- NAMED
- TITLE