How can I get the current date and time using PHP [duplicate]
Possible Duplicate:
Get current date and time in PHP
I was wondering how can I get the current date and time using PHP.
echo time();
echo date('Y-m-d H:i:s');
http://php.net/manual/en/ref.datetime.php
The date() command (as suggested by deceze) can do all of the above
A good quick reference is http://www.wdvl.com/Authoring/Languages/PHP/Date_Time/
精彩评论