dizeden zaman damgası kaldırmak

0 Cevap php

can anyone get me a code for hiding the time stamp from a string. I used this code to get the date from the string suppose the

$date_string = "02/06/2011 11:00 am - 2:00 pm";

$date = strtotime($date_string);
$date = date('m/d/y', $date);

Ama ben alıyorum koymak dışarı böyle bir şeydir

 1/1/70

Please suggest a better way that I could implement for this to work I want it to show like

02/06/2011

0 Cevap