So und nur so!
bearbeitet von Ronald Schaukrug> Ich finde aber, dass es so besser ist:
>
> ~~~js
> function addDays(inputDate, numDays) {
> return new Date(inputDate.getYear(), inputDate.getMonth(), inputDate.getDay() + numDays);
> }
> ~~~
Was heisst hier "besser"? Das ist es was funktioniert.
Ronald Schaukrug