SyntaxFix
Write A Post
Hire A Developer
Questions
This is the cleanest approach
let dat = new Date() _x000D_ let copyOf = new Date(dat.valueOf())_x000D_ _x000D_ console.log(dat);_x000D_ console.log(copyOf);