convert string date in python to day month year in python
date, python
Solution
Don't reinvent the wheel. You don't need the dictionary.
>>> import datetime
>>> datetime.datetime.strptime('1/11/2012', '%m/%d/%Y').strftime('%d %B %Y')
'11 January 2012'
Problem
I m new to python. I have a date in the format 1/11/2012 that I need to convert to 11 January 2012. I need to use a procedure given a dictionary: month = {1:January, 2: February,...etc}. If I print (month, date string), then I should get that. Thanks a lot for help.