get only date from datetime in pgsql where clause code example Example: postgre query date SELECT * FROM data WHERE date = '2020-12-21'