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
When we get yesterday's date, there are three possibilties
1. Get yesterday date with current timing
moment().subtract(1, 'days').toString()
2. Get yesterday date with start of the day
moment().subtract(1, 'days').startOf('day').toString()
3. Get yesterday date with end of the day
moment().subtract(1, 'days').endOf('day').toString()