Use datetime() or timestamp() field in mysql to store those. You dont have to use PHP's date functions when you insert or fetch information from the database. Mysql has lot of very good date and time functions. Take a look:
http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html
So for example when you are inserting new user you can use NOW() function:
INSERT INTO users (name,registered) VALUES ('John Doe',NOW())
That would insert user John Doe with current date and time(eg. 2007-07-10 12:45). Using unixtimestamps is just a pain in the arse. And even if you need to sometimes to have the date as unix timestamp, you can always convert that date to unix timestamp within mysql(check the link that I gave you and there "UNIX_TIMESTAMP" function).
EDIT: Oh, I almost forgot. You can find the answer to you question in that link.