javascript clone date
snippet in javascript

javascript clone date

user6955

var date = new Date();
var clonedDate = new Date(date.getTime()); //clone the date