how to crate a copy of a date in js code example
Example: javascript clone date
var date = new Date();
var clonedDate = new Date(date.getTime()); //clone the date
var date = new Date();
var clonedDate = new Date(date.getTime()); //clone the date