how do I do a deep copy in JS, specifically with the date object.
var now = new Date();
var tomorrow = now;// this does a shalow copy
var tomorrow.setDate( tomorrow.getDate+1);// this does will add a day to both refrences to the same date object :-(
My question is how would I do a deep copy of the now object and refer by tomorrow