import time import datetime d = datetime.date(2015,1,5) unixtime = time.mktime(d.timetuple()) unixtime