Return to Snippet

Revision: 49750
at July 29, 2011 07:47 by necode

Initial Code
$dob = date('Y-m-d',strtotime($_POST['dob']));

Initial URL

Initial Description
Insert that into the database as a string. The example would give you the format 2011-01-28

Initial Title
Magento collect Date of birth from php form and insert into DB

Initial Tags
date, customer, magento

Initial Language