lib/libs.js
function daysFrom (n, date) {
                    if(typeof date === 'number') date = new Date(date);
                    if(!(date instanceof Date))  date = new Date();

                    date.setDate(date.getDate() + n);
                    return date;
                }
function daysFrom (n, date) {
                    if(typeof date === 'number') date = new Date(date);
                    if(!(date instanceof Date))  date = new Date();

                    date.setDate(date.getDate() + n);
                    return date;
                }
function daysFrom ( n , date ) { if ( typeof date === 'number' ) date = new Date ( date ) ; if ( ! ( date instanceof Date ) ) date = new Date ( ) ; date . setDate ( date . getDate ( ) + n ) ; return date ; }
Advances (or reverses) the date the specified number of days.
@param {Number} n The number object to operate on.
@param {Date} date The date to change.
@return {Date} The modified date.
Advances ( or reverses ) the date the specified number of days .