Good afternoon, I'm having a problem where I need to remove the time or set the end time always to 23:59:59
if($form)
{
$start = new \DateTime($form['startDate']);
$start = $start->format('U');
$end = new \DateTime($form['endDate']);
$end = $end->format('U');
}
$start = isset($start) ? $start : (time() - ((60*60*24)*30));
$end = isset($end) ? $end : time();
Does anyone know how I can format Unix Time?