var validTime = new Date(); validTime.setTime(validTime.getTime() + (30 * 60 * 1000)); console.log(validTime.toGMTString());