php date strtotime format

Solutions on MaxInterview for php date strtotime format by the best coders in the world

showing results for - "php date strtotime format"
Giovanna
24 Jun 2017
1$date = '25/05/2010';
2$date = str_replace('/', '-', $date);
3echo date('Y-m-d', strtotime($date));
4