copy

creates a copy of a date

Date copy(Date date);
dateDatea date object
Datea copy of the date object

Example

var date1 = new Date(2012,11,12);
var date2 = webix.Date.copy(date1);
 
console.log(date1); // -> Wed Dec 12 2012 00:00:00 GMT+0300 
console.log(date2); // -> Wed Dec 12 2012 00:00:00 GMT+0300

Back to top