I took Kevin'd advice:
$currentdt=date("Y-m-d")." 00:00:00";
$startdt=mktime(0, 0, 0, date("n", $currentdt), date("j", $currentdt), date("Y", $currentdt));
$ucurdt=strtotime($currentdt);
echo $currentdt."=curdt<br>";
echo $ucurdt."=Unix curr<br>";
echo date("Y-m-d g:i:s", $ucurdt)."=Unix reformat<br>";
echo date("Y-m-d g:i:s", $startdt)."=strtdt<br>";
output:
2003-07-02 00:00:00=curdt
1057118400=Unix curr
2003-07-02 12:00:00=Unix reformat
1969-12-31 6:59:59=strtdt
Why does this always go back to noon(note Unix reformat)?