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
Yesterday's date in Momentjs in DD-MM-YYYY format.
const yesterdaydate = moment().subtract(1, "days").format("DD-MM-YYYY"); console.log(yesterdaydate)
moment().add(-1, 'days');
You can find more information in the docs.