It should actually be `newDate.getUTCDate()`, since `this.date==undefined` is handled in the line directly above.