python parse string into datetime

description: python parse string into datetime

parse string into datetime

1
2
3
import datetime 
datetime.datetime.strptime('2018-01-01', "%Y-%m-%d")
# datetime.datetime(2018, 1, 1, 0, 0)

more on search4fan.github.io