let date = Date.parse(2018); let now = new Date(); let result = (now - date)/604800000; alert(result); alert(Math.floor(result)); // полных недель