Quantcast
Viewing all articles
Browse latest Browse all 2504

Get time in a format YYYY-MM-DD

Topic by Tony William

Hi all,

How can i get the time from incident object in the below format
2017-2-2017
When i try to fetch using below i am getting '1487232502'
and how can i convert this to the Expected format

$incident = RNCPHP\Incident::fetch($incidentid);
echo $incident->CreatedTime;

Tony


Viewing all articles
Browse latest Browse all 2504

Trending Articles