SyntaxFix
Write A Post
Hire A Developer
Questions
This is an ES6 version
let date = new Date() let newDate = new Date(date.setDate(date.getDate()-30)) console.log(newDate.getMonth()+1 + '/' + newDate.getDate() + '/' + newDate.getFullYear() )