copy of Date, Methods Webix Docs

StartAPI ReferenceMixinsDateMethods

creates a copy of a date

Date copy(Date date);

date

Datea 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

Join Our Forum

We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.

Go to Forum