>>> from datetime import datetime >>> a = datetime.strptime('26/01/12 23:50:32.123', '%d/%m/%y %H:%M:%S.%f') >>> a.microsecond