I am using datePicker for date selection in the front end. I have shown date like this:
September,30 2012
But when I receive it in PHP and try to convert it into date format, it generates wrong date.
$var = date('Y-m-d', strtotime('September,30 2012'));
The above gives me 1970/01/01.