STR_TO_DATE

Learn how to use the STR_TO_DATE date/time function in PlaidCloud Lakehouse. Parses a string into a date using a format string - with syntax and examples.

Parses a string into a date using a format string.

Analyze Syntax

func.str_to_date(<str>, <format>)

Analyze Examples

func.str_to_date('Jun 15 2024', '%b %d %Y')

┌──────────────┐
 '2024-06-15'  
└──────────────┘

SQL Syntax

STR_TO_DATE(<str>, <format>)

SQL Examples

SELECT STR_TO_DATE('Jun 15 2024', '%b %d %Y');

┌────────────┐
 2024-06-15  
└────────────┘