如何在表单中使用两种日期类型?

Well basically I'm now working on contact form, and I need to add two dates types. User can specify which date they will use in a profile, and then it uses if statement to show exact date type (American or European) in form. That is easy, I can do it with if statement, but next is saving date type to database. Well basically my database table is timestamp, and saving European time is easy, but how about American time? Well basically, in my form for american time there is a hours ( 1 - 12 ), minutes ( 1 - 60) and period ( AM and PM ), well basically 3 select inputs, so any ideas, how could I convert them to 24 hour time and then save to database as European date?

Have done already everything with European date, now only American time left.

Hope you understood what I ment.

Use DateTime its can convert between any date & time format you want

$date = DateTime::createFromFormat("m/d/Y","03/32/2012");
echo $date->format("d-m-Y"); // You can use any format 

OR

echo $date->format("U"); // Timestamp 

If you want to use functions only

$date = date_create_from_format("m/d/Y","03/32/2012");
echo date_format($date, "d-m-Y");

For documentation on different formats : http://www.php.net/manual/en/datetime.createfromformat.php