php start of day epoch
snippet in php

php start of day epoch

user8288

$beginOfDay = strtotime("today", $timestamp);
$endOfDay   = strtotime("tomorrow", $beginOfDay) - 1;