I need to change the date format from 14 April,2015 to YYYY-MM-DD in php. I tried the following code
$your_date = date("Y-m-d", strtotime($date));
The output is 1970-01-01. please let me know the steps to proceed
I need to change the date format from 14 April,2015 to YYYY-MM-DD in php. I tried the following code
$your_date = date("Y-m-d", strtotime($date));
The output is 1970-01-01. please let me know the steps to proceed