date / javascript / todayCross-Browser Date.today ()Date.today = function(){ return new Date(~~(+new Date() / 864e5) * 864e5)}