Converting a UNIX Timestamp to Formatted Date String

Try gmdate like this:

<?php
$timestamp=1333699439;
echo gmdate("Y-m-d\TH:i:s\Z", $timestamp);
?>

Leave a Comment

error code: 523