Reputation: 1452
I need to have a time stamp that is like this: 2008-01-28T20:24:17Z
for a jQuery plugin however when I try to retrieve the date from a mongoDB using:
<?php print date('c', $article['created_at']->sec);?>
I get this back: 2012-01-24T19:20:12+00:00
Does anyone know how to change the timestamp to match the first ones formatting.
Upvotes: 0
Views: 702