Possible Duplicate:
Strtotime() doesn’t work with dd/mm/YYYY format
I have this variable which i get the info like this:
echo $start=$_REQUEST['to'];
It outputs something like this:
2/04/2012
What i need is to convert it like this: 20120402
Could you please help me? I tried strotime and no success..
I tried converting the string before in a date format, then i converted it in a Ymd format, but i kept receiving a strange date, something like 1970 !
I tried this:
$time = strtotime( $date );
$myDate = date( 'y-m-d', $time );
thanks!