Posted By

loric on 10/23/10


Tagged

phpinputdatemysql


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

zack


PHP convert user input date to MySQL formatted date


 / Published in: PHP
 

  1. $myDate = '10/16/2007';
  2. $myDate = date('Y-m-d', strtotime($myDate));

Report this snippet  

You need to login to post a comment.