Error!

MySQL Error: Incorrect DATE value: '2012/04/31'
SQL Statement: select count(*) as total_records from (SELECT 1 FROM contents JOIN content_types on contents.content_type_id = content_types.id WHERE content_type_id IN ('2487') and contents.published=1 and publish_date <= '2024-04-23 12:06' and date(publish_date) >= '2012/04/30' and date(publish_date) < '2012/04/31' and contents.magazine_id=10 ORDER BY publish_date desc ) as t