JavaScript heute minus 1 Tag
var d = new Date();
d.setDate(d.getDate()-1);
Ham-Solo
var d = new Date();
d.setDate(d.getDate()-1);
use moment.js