Convert python abbreviated month name to full name

datetime, python

Solution

If you insist on using `datetime` as per your tags, you can convert the short version of the month to a datetime object, then reformat it with the full name:

import datetime
datetime.datetime.strptime('apr','%b').strftime('%B')

Problem

How can I convert an abbreviated month anme e.g. `Apr` in python to the full name?

Original source