SyntaxFix
Write A Post
Hire A Developer
Questions
Yesterday's date can be calculated as,
var prev_date = new Date(); prev_date.setDate(prev_date.getDate() - 1);