function addUTCDays(date, days) { var result = new Date(date); result.setUTCDate(result.getUTCDate() + days); // ^^^ ^^^ return result; }