Is there a built-in method for converting a date to a datetime in Python, for example getting the datetime for the midnight of the giv
date
datetime
You can use the date.timetuple() method and unpack operator *.
date.timetuple()
*
args = d.timetuple()[:6] datetime.datetime(*args)