I'm currently using this to print the current date:
let date = (( new Date()).getMonth()+ 1 ) + "-" + ( new Date()).getDate() + "-" + ( new Date()).getFullYear()
console.log(date)
I want to be able to print the date fourteen days ago using a similar format. Can this be done using javascript?