I have a variable has a value of 2017-11-10
and like to get 3 days before from 2017-11-10
which is 2017-11-7
Seems like it only works if you have entire timestamp. However, I removed time from my timestamp.
let d = new Date();
d.setDate(d.getDate()-1);
Is there any ways to do this without time?