# Pastebin fGGhFjVH t0mst0ne_: from datetime import datetime t="2014/08/05" print datetime.strptime(t, "%Y/%m/%d").strftime('%s') 1407168000