php convert unix time to date
snippet in php

php convert unix time to date

user7729

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

php unix timestamp to date

user2418

$currentTime = DateTime::createFromFormat( 'U', $timestamp );