<?php

$ini = "28/05/2017";
$ini =str_replace("/", "-", $ini);

$newDateini = date( "Y-m-d", strtotime("$ini"));
 
echo $newDateini;