I need to change the format of the date format from datetime to date in the SQL query, I tried:
$sql="SELECT created_by FROM meetings WHERE STR_TO_DATE('date_start', 'Y-m-d')='$CorrectDate'";
but to no avail.
date_start is a field in an SQL table.
Any help is appreciated !!!
source
share