Assuming you are using a mysql database to store all the info, just add the variable now() into your mysql insert statement like this:
$sql = "INSERT INTO guestbookTable VALUES ( '', now(), '$name', '$user', '$message' )";
If you're not using a mysql (or other) database, then you should be!
Hope this helps!