The Postgres Query `select date('22-02-2022')`
is showing Error message.

I need to save date in a column of a table, but the input date can be any format. Please suggest how to save date in YYYY-MM-DD format.
Following is the Error screenshot:

[![Error screenshot](https://i.stack.imgur.com/cNvDk.png)](https://i.stack.imgur.com/cNvDk.png)