PP.Date.clone(date): Date;
date. Date. Date.
The clone static method returns date copy.
The method returns an object of the Date type.
To execute the example, add a link to PP.js scenario file to HTML page.
// Create the current date date = new Date(); // Create date copy newDate = PP.Date.clone(date); console.log(newDate);
After executing the example a date copy is created.
See also: