I would like a variable to hold yesterday\'s date in the format DD-MM-YYYY using Moment.js. So if today is 15-04-2015, I would like to subtract a day and have 1
DD-MM-YYYY
In angularjs moment="^1.3.0"
moment('15-01-1979', 'DD-MM-YYYY').subtract(1,'days').format(); //14-01-1979 or moment('15-01-1979', 'DD-MM-YYYY').add(1,'days').format(); //16-01-1979 ``