javascript clone date

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

Also in JavaScript: