[Solved] How to parse dates to get the year in Python [duplicate] December 11, 2022 by Kirat time.strptime("2/8/2015 22:22", "%d/%m/%Y %H:%M") 3 solved How to parse dates to get the year in Python [duplicate]