There is a lot to find about all different Date or Time calculations, but I was unable to locate the method to get exactly what I need.
I need to retrieve all history (traffic) from the database at any given time of day. I am using $from
and $till
for this. $till
is easy because I fetch that with;
$till= new \DateTime();
wich shows as: 2014-06-05 16:21:53
I need to fill $from
with: 2014-06-05 00:00:00
I think it will be very easy when I see the answer, but for now I am failing at achieving this.