Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python strptime()

from datetime import datetime

date_string = "21 June, 2018"
print("date_string =", date_string)

date_object = datetime.strptime(date_string, "%d %B, %Y")
print("date_object =", date_object)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Python
ADD COMMENT
Topic
Name
4+2 =