For those of who haven't take a lit class in a while, MLA is Modern Language Style and months are abbreviated like this
- January - Jan.
- February - Feb.
- March - Mar.
- April - Apr.
- May - May
- June - June
- July - July
- August - Aug.
- September - Sept.
- October - Oct.
- November - Nov.
- December - Dec.
With PHP, it's easy to get either abbreviated or not
$date = DateTime::createFromFormat('Ymd', $unformatted_date_string);
// abbreviated
echo $date->format('M d, Y');
// not abbreviated
echo $date->format('m d, Y');
But looked through http://php.net/manual/en/datetime.formats.date.php and not seeing a way to get a mix of both. Is there a better solution than string parsing?
J
is the one that does it, but I can't find it in the docs... – airstrike