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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -