Posted By

necode on 07/29/11


date customer magento dob

Versions (?)

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

 / Published in: PHP


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.