client/plugins/vcard/js/vcardjs-0.3.js
function(aDate, bDate, addSub) {
            if(typeof(addSub) == 'undefined') { addSub = true };
            if(! aDate) { return bDate; }
            if(! bDate) { return aDate; }
            var a = Number(aDate);
            var b = Number(bDate);
            var c = addSub ? a + b : a - b;
            return new Date(c);
        }
function(aDate, bDate, addSub) {
            if(typeof(addSub) == 'undefined') { addSub = true };
            if(! aDate) { return bDate; }
            if(! bDate) { return aDate; }
            var a = Number(aDate);
            var b = Number(bDate);
            var c = addSub ? a + b : a - b;
            return new Date(c);
        }
function ( aDate , bDate , addSub ) { if ( typeof ( addSub ) == 'undefined' ) { addSub = true } ; if ( ! aDate ) { return bDate ; } if ( ! bDate ) { return aDate ; } var a = Number ( aDate ) ; var b = Number ( bDate ) ; var c = addSub ? a + b : a - b ; return new Date ( c ) ; }
add two dates. if addSub is false, substract instead of add.
add two dates . if addSub is false substract instead of add .