tags:

views:

88

answers:

2

Possible Duplicate:
Get current date and time in PHP

I was wondering how can I get the current date and time using PHP.

+9  A: 
echo time();
echo date('Y-m-d H:i:s');

http://php.net/manual/en/ref.datetime.php

deceze
A: 

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/

Tim Joseph