from datetime import datetime print datetime.strptime(modifiedTime[4:], "%Y%m%d%H%M%S").strftime("%d %B %Y %H:%M:%S") # prints something like 01 January 1970 09:30:01