php - Get time value only from timestamp values -
i fetching datelocal variable "2013-04-18t12:25:00.000" how can retrieve 12:25:00.000 in ?
i calling value in below code
echo $flightstatus->arrivaldate->datelocal,"<br>";
you can use date
, strtotime
function achieve this
echo date('h:i:s',strtotime($flightstatus->arrivaldate->datelocal));
this output
12:25:00
Comments
Post a Comment