I am trying to convert a date from my database into a different format, but for some reason it's not showing the correct time.
This is the date in the database:
17/06/2015
I'm using this code and its outputing this:
1970-01-01
This is the code I've tried so far, but as you can see it's outputting the incorrect date:
$date = str_replace('/', '-', "17/06/2015");
$date = date('Y-m-d',strtotime("17/06/2015"));
echo $date;