Just like this: moment().subtract(1, 'days'). It will give you the previous day with the same exact current time that is on your local pc.
Just like this: moment().subtract(1, 'days'). It will give you the previous day with the same exact current time that is on your local pc.