Ctrl+K
Logo image Logo image

Site Navigation

  • API Reference
  • Examples

Site Navigation

  • API Reference
  • Examples

Section Navigation

  • PyFlink Table
    • TableEnvironment
    • Table
    • Data Types
    • Window
    • Expressions
    • User Defined Functions
    • Descriptors
    • StatementSet
    • Catalog
  • PyFlink DataFrame
  • PyFlink Multimodal
  • PyFlink DataStream
  • PyFlink Common

pyflink.table.expressions.to_date#

to_date(date_str: Union[str, pyflink.table.expression.Expression[str]], format: Optional[Union[str, pyflink.table.expression.Expression[str]]] = None) → pyflink.table.expression.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.

New in version 1.12.0.

previous

pyflink.table.expressions.local_timestamp

next

pyflink.table.expressions.to_timestamp

Show Source

Created using Sphinx 4.5.0.