To create a timestamp within a mysql statement use it like
SELECT UNIX_TIMESTAMP('1997-10-04 22:23:00');
If you have 3 boxes in your input field
$query = "INSERT INTO mytable ('who', 'when') VALUES ('$name', UNIX_TIMESTAMP('$year-$month-$day'))";
Or if it was a date field you'd just insert '$year-$month-$day';
Within PHP you can use [man]mktime[/man] or [man]strtotime[/man]