TO_DATE
Converts text to a date using the given format.
Syntax
TO_DATE(<text>, '<format>')
The mirror of TO_CHAR: it reads a date from text written differently from what PostgreSQL expects — for example 13.09.2026. The patterns are the same: DD — day, MM — month, YYYY — year, Month — the month name.