I'm trying:
$m = 'December';
$from = date('jS M Y', strtotime("first day of previous $m"));
But it's not returning a date. In use, the month will be selected by a user from a dropdown box. However, I have tried typing 'December' in place of the variable directly and it still doesn't work.
I'm expecting it to return "1st Dec 2012".