I have the following date: "11-07-2017" day / month / year
I need to convert it to "yy / mm / dd" to insert it into the mysql bd I have tried with this without results:
$date = 11-07-2017;
date_format($date,'Y-m-d');
I get this error:
Severity: Warning
Message: date_format () expects parameter 1 to be DateTime, string given