pyflink.table.expressions.to_date#
- to_date(date_str: str | Expression[str], format: str | Expression[str] | None = None) Expression[source]#
Converts the date string with the given format (by default ‘yyyy-MM-dd’) to a date.
- Parameters:
date_str – The date string
format – The format of the string
- Returns:
The date value with DATE type.
Added in version 1.12.0.