Please help me getting the previous dates in angular 4.
currentdate: Date; this.currentdate = new Date(); console.log(this.datePipe.transform(this.currentdat
Try this
let dte = new Date(); dte.setDate(dte.getDate() - 2); console.log(dte.toString());