If your language is English, then the standard datetimemodule will analyze the abbreviations of the month for you:
import datetime
date = datetime.datetime.strptime(inputvalue, '%d/%b/%Y').date()
C ( ) , , Python . locale.setlocale() locale.resetlocale(), .
:
date.strftime('%d/%m/%Y')
:
>>> datetime.datetime.strptime('15/Nov/2013', '%d/%b/%Y').date()
datetime.date(2013, 11, 15)
>>> datetime.datetime.strptime('05/Jan/2014', '%d/%b/%Y').date()
datetime.date(2014, 1, 5)
>>> datetime.datetime.strptime('15/Nov/2013', '%d/%b/%Y').date().strftime('%d/%m/%Y')
'15/11/2013'
>>> datetime.datetime.strptime('05/Jan/2014', '%d/%b/%Y').date().strftime('%d/%m/%Y')
'05/01/2014'