Your format contains an abbreviation and uses 4 characters:
'03 févr. 2015 14:26:00'
but if I set the locale to fr_FR and format the same date:
>>> import locale, datetime >>> locale.setlocale(locale.LC_TIME, ('fr', 'UTF-8')) 'fr_FR.UTF-8' >>> datetime.datetime(2015, 2, 3, 14, 26).strftime('%d %b %Y %H:%M:%S') '03 f\xc3\xa9v 2015 14:26:00' >>> print datetime.datetime(2015, 2, 3, 14, 26).strftime('%d %b %Y %H:%M:%S') 03 fév 2015 14:26:00
You will notice that only 3 characters are used and no dot is included. Parsing dates only supports the same abbreviations of 3 characters:
>>> datetime.datetime.strptime('03 fév 2015 14:26:00', '%d %b %Y %H:%M:%S') datetime.datetime(2015, 2, 3, 14, 26)
You could try the parsedatetime library , while others have had successful parsing of French dates with this tool.
source share