0

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

aynber
  • 22,380
  • 8
  • 50
  • 63

0 Answers0