I need to decrement a Javascript date by 1 day, so that it rolls back across months/years correctly. That is, if I have a date of \'Today\', I want to get the date for \'Ye
var today = new Date(); var yesterday = new Date().setDate(today.getDate() -1);