Date.clone

Syntax

PP.Date.clone(date): Date;

Parameters

date. Date. Date.

Description

The clone static method returns date copy.

Comments

The method returns an object of the Date type.

Example

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:

PP