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 ?
you can also change Hour,Minute,seconds and milliseconds attributes of time object like this.
Try Library called node-datetime
Extract yesterday's date from today
Try this:
To get the string in a format familiar to people
Date class will give the current system date and current_ date - 1 will give the yesterday date.
Eg: