Course
Simulator
More
Premium
Log in
PostgreSQL Function Reference
Functions
TO_DATE
TO_DATE
Converts a string to a date using the specified format.
PostgreSQL 17.5
TO_DATE
(
string
,
format
)
string
The string to convert
format
The format
Examples
PostgreSQL 17.5
SELECT
TO_DATE
(
'November 13, 1998'
,
'Month DD, YYYY'
)