from the php manual, getdate function...
*-------------------------
mdchaney at michaelchaney dot com
20-Mar-2000 10:49
Inserting date/time values into MySQL does NOT require 10 lines of code for
each date. Just use the "date" function here in PHP to make a MySQL-friendly
field:
$startdate=date('Y-m-d');
Use the optional second argument to specify the time (other than "now")
to be inserted. If you want to insert
into a date/time field, use the
following:
$enddatetime=date('Y-m-d H:i:s');
Again, use the second argument to specify an exact time.
*-------------------------------------
Hope this helps