How do i convert
$time = "31-08-2013T14:00";
to
$time = "Sa, 14:00" #sa for saturday
i have tried the following:
$time = date("D H:i", $time);
but this does not work. Can anybody help me?
How do i convert
$time = "31-08-2013T14:00";
to
$time = "Sa, 14:00" #sa for saturday
i have tried the following:
$time = date("D H:i", $time);
but this does not work. Can anybody help me?
Try with strtotime
$time = date("D H:i", strtotime($time));
You need to convert the $time
to string