Date.prototype.clone()

Description:

Created a cloned object by itself.

Parameters:

  • N/A

Returned Value:

  • Cloned object.

Sample:

var date = new Date(2012, 4, 2, 18, 01, 03);
var clonedDate = date.clone();
document.write(clonedDate.format("yyyy-MM-dd HH:mm:ss"));
//Result: "2012-05-02 18:01:03"

Last edited Aug 20, 2012 at 5:44 AM by rynnwang, version 3

Comments

No comments yet.