Hi
i need to change the format of my date string using PHP
from : "06/16/2010"
to : "2010-06-16"
can you please help me achieve this
thanks
Hi
i need to change the format of my date string using PHP
from : "06/16/2010"
to : "2010-06-16"
can you please help me achieve this
thanks
$date = "06/16/2010";
echo date('Y-m-d', strtotime($date)); // outputs 2010-06-16
Using the strtotime function.