Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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'))
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #python #datetime #string #iso
ADD COMMENT
Topic
Name
4+8 =