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
http://stackoverflow.com/questions/4812194/how-to-collect-date-of-birth-from-php-form-and-insert-into-mysql

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
PHP