In PHP given an extended date string, how can I extract the month Year in long format?

Posted by stormist on Stack Overflow See other posts from Stack Overflow or by stormist
Published on 2010-04-13T20:54:50Z Indexed on 2010/04/13 21:23 UTC
Read the original article Hit count: 387

Filed under:
|
|

My attempted solution was:

$date = "Nov 30 2009 03:00:00:000PM";
echo date("F Y", strtotime($date));

Expected result should be: "November 2009"

Any other simple solutions?

© Stack Overflow or respective owner

Related posts about php

Related posts about datetime