1. MySQL column datatype is "DATE"
$date = date('Y-m-d', strtotime(str_replace('-', '/', $date)));
2. MySQL column datatype is "DATETIME":
$date = date('Y-m-d H:i:s', strtotime(str_replace('-', '/', $date)));
$date = date('Y-m-d', strtotime(str_replace('-', '/', $date)));
2. MySQL column datatype is "DATETIME":
$date = date('Y-m-d H:i:s', strtotime(str_replace('-', '/', $date)));
No comments