<?php
echo date('m/d/Y H:i:s', 1541843467);
?>
$time = '2021-03-31 23:59:00';
strtotime($time);
<?php
$date = new DateTime();
echo $date->format('U = Y-m-d H:i:s') . "
";
$date->setTimestamp(1171502725);
echo $date->format('U = Y-m-d H:i:s') . "
";
?>
$unix_timestap = microtime(true);
$date_time = gmdate("Y-m-dTH:i:s", (int)$unix_timestap);
laravel convert timestamp to date
date('Y-m-d', strtotime($date));
laravel convert date to timestamp
date('Y-m-d H:i:s', strtotime($date));