Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to convert string to date object in python

>>> import datetime
>>> datetime.datetime.strptime('24052010', "%d%m%Y").date()
datetime.date(2010, 5, 24)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #string #date #object #python
ADD COMMENT
Topic
Name
3+8 =