scalar-extension

to_date

Parse a date according to a template; do not assume this is strict input validation.

Formal Syntax & Structure

sql syntaxsql
to_date(text, template text)

Working Example

Example Snippetsql
SELECT to_date('2025/01/02','YYYY/MM/DD');
SQL Reference