I am using date-format package in node back end and I can get today date using
var today = dateFormat(new Date());
In the same or some other way I want yesterday date. Still I did't get any proper method. For the time being I am calculating yesterday date manually with lot of code. Is there any other method other then writing manually ?