Answers for "string format iso to datetime python"

0

python datetime to string iso 8601

from datetime import datetime
my_date = datetime.now()
print(my_date.strftime('%Y-%m-%dT%H:%M:%S.%f%z'))
Posted by: Guest on August-11-2020
-1

python datetime to string iso 8601

from datetime import datetime
my_date = datetime.now()
print(my_date.isoformat())
Posted by: Guest on August-11-2020

Code answers related to "string format iso to datetime python"

Python Answers by Framework

Browse Popular Code Answers by Language