You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Get time in a format YYYY-MM-DD

Accepted answer
3
Views
8
Comments
edited Feb 28, 2017 6:50AM in Integrations and APIs 8 comments

Content

Hi all,

How can i get the time from incident object in the below format
2017-2-17
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

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!