I have a date string with the format \'Mon Feb 15 2010\'. I want to change the format to \'15/02/2010\'. How can I do this?
convert string to datetime object
from datetime import datetime s = "2016-03-26T09:25:55.000Z" f = "%Y-%m-%dT%H:%M:%S.%fZ" out = datetime.strptime(s, f) print(out) output: 2016-03-26 09:25:55