please i need help in converting string to date
my string is $search = '6/2/2014'
i used this way but it doesn't work correctly
$time = strtotime('$search');
$newformat = date('DD-MM-YYYY',$time);
echo $newformat;
the result is displayed as 01-01-70
What should I do for this output help.