Javascript Date getUnixTime(strDate)
function getUnixTime(strDate) { var d = new Date(strDate); var unixTime = (d.getTime() / 1000); return unixTime; }