Answers for "get unix time from date php"

PHP
2

php start of day epoch

$beginOfDay = strtotime("today", $timestamp);
$endOfDay   = strtotime("tomorrow", $beginOfDay) - 1;
Posted by: Guest on September-15-2020
1

php unix timestamp to date

$currentTime = DateTime::createFromFormat( 'U', $timestamp );
Posted by: Guest on November-05-2020

Browse Popular Code Answers by Language