So, my question is simple, how do I get yesterday\'s date with MomentJs ? In Javascript it is very simple, i.e.
today = new Date(); yesterday = new Date(today.se
You can easily subtract days from moment using
var yesterday = moment().subtract(1, 'days')
And for finding the previous date
var previousDay = moment('2017/11/6', 'YYYY/MM/DD').subtract(1, 'days')