Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to input dates in python

import datetime
time_str = input("enter time in this format yyyy-mm-dd")
time=datetime.datetime.strptime(time_str, "%Y-%m-%d")
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #input #dates #python
ADD COMMENT
Topic
Name
5+3 =