I have a date which is say like this
$given_date = '2014-12-25'; //Y-m-d format
Now i want to get the midnight timestamp of the given date, so I am doing this method
$midnight = strtotime(date('Y-m-d',$given_date).' 00:00:00');
Am I doing it right??
or I can use something like this?
$midnight = strtotime("midnight $given_date");
Which is better?