I am trying to display date string from JSON that looks like:
/Date(1115190000000-0700)/
By performing a php echo statement:
<?php
$date = $contract['ContractResult'][0]['ContractDate']; //which is /Date(1115190000000-0700)/
echo $date;
?>
My JSON is coming from WCF if that matters.
You’ll have to parse it. This requires you to find out what
1115190000000and what0700means. The latter part might be some UTC offset (I’m just guessing)?Once you have a timestamp, you can:
BTW: I found out that
1115190000is04.05.2005. Does this make sense to you?