ich E-Mails über Google Mail API bin Parsen und haben folgendes Datumsformat bekam:Ändern Datetime-Format in Python Sprache
Sat, 21 Jan 2017 05:08:04 -0800
Ich möchte es in ISO umwandeln 2017-01-21
(yyyy-mm-dd) Format für MySQL-Speicher . Ich kann es nicht durch strftime()/strptime() tun und verpasse etwas. Kann mir bitte jemand helfen?
TIA
Danke ... aber ich brauche nur das Datum ... nicht die Zeit – chhibbz
print (date.date()). Dies gibt dir nur das Datum – MSD
Ja! ... das ist was ich will. Danke @saranya – chhibbz