Answers for "python iso 8601 date format"

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

Python Answers by Framework

Browse Popular Code Answers by Language