Posted By

necode on 07/29/11


Tagged

date customer magento dob


Versions (?)

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


 / Published in: PHP
 

URL: http://stackoverflow.com/questions/4812194/how-to-collect-date-of-birth-from-php-form-and-insert-into-mysql

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

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

Report this snippet  

You need to login to post a comment.