php unix timestamp to date
snippet in php

php timestamp to date

user7124

<?php 
echo date('m/d/Y H:i:s', 1541843467); 
?> 

php convert unix time to date

user6010

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

php datetime object get unix timestamp

user5391

$date = new DateTime();
echo $date->getTimestamp();

php unix timestamp to date

user6783

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