import datetime
tdate = datetime.date(2012, 1, 31)
datetime.datetime.combine(tdate, datetime.time())
Convert a datetime.date object into a datetime.datetime object with zeros for any missing time attributes