I have date from monthpicker in this format: 2014 April , and i want to change it to 2014-04-01 before inserting it to mysql. I'm trying to use strtotime:
$b = date("Y-m-d", strtotime($_POST['month']));
echo $b;
Result is: 1970-01-01. I dont get it.