I need to parse date and time. Here is what I\'ve got:
import time a = time.strptime(\'Apr 28 2013 23:01\', \"%b %d %y %H:%M\") print a
Bu
You can
import time a = time.strptime('Apr 28 2013 23:01', "%b %d %Y %H:%M") print time.strftime("%d/%m/%Y",a)
with Y. It is followed by a conversion line of code, and gives result
Y
28/04/2013