Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

try datetime python

try:
    d = datetime.datetime.strptime(s, "%Y-%m-%d %H:%M:%S")
except ValueError:
    d = None
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #datetime #python
ADD COMMENT
Topic
Name
7+8 =