PDA

View Full Version : midnight today


amykhar
10-11-2001, 05:34 PM
Help please :)

This: $datecutStat=time()-(1*24*60*60);

will get me info for the last 24 hours. How can I calculate the datecut to be exactly midnight each day instead?

Amy

amykhar
10-11-2001, 07:36 PM
got it :)


$day = vbdate("m d Y",time());
$dt = explode(" ", $day);

$midnight = mktime (0, 0, 0, $dt[0], $dt[1], $dt[2]);