Salve a tutti, mi sapreste dire come afaccio a sommare n giorni ad una data?
Es.: Mi ricavo la data odierna e vorrei sommargli 20 giorni. A che data corrisponde?
Codice PHP:
var strToday = new Date()
    var 
day strToday.getDate();
    var 
month strToday.getMonth() + 1;
    var 
year String(strToday.getFullYear()).substring(2);

    function 
test() {
        
alert(strToday.getDate()+30); //mi dice che il girono è 52
        
alert(day "/" month "/" year);
    } 
Ho fatto una ricerca nel forum ma niente.