Profile image for Jason Napolitano therealjnap
This code will convert a date string to date format.
Language
Python
Tags
date python

Convert String To Date

1 import datetime 2 3 def ConvertStringToDate(s): 4 d = datetime.datetime.strptime(matdate '%Y-%m-%d') 5 return d

Comments