0

So I'm having some issues formatting my JSON Date response and I wanted to see if someone could help me.

  • Here is the JSON API Response that I'm getting: "ArriveOnLocal": "/Date(1610416800000)/",
  • This can be accessed using: $item->ArriveOnLocal.

What I've tried w/ no output on screen luck:

<?php DateTime::createFromFormat('m/d/Y', $item->ArriveOnLocal); ?>  
<?= date('m/d/Y', $item->ArriveOnLocal); ?>  

I'd like to get a return response such as 01/12/2021.

All help is appreciated!

0 Answers0