Returns a new CalculationDate relative to the CalculationDate shifted to the day before.
var date = now.valueOf('2017-03-15 15:00:00'); // 3pm on a Wednesday
var yesterday = date.yesterday();
console.log('yesterday = %s', date);
//yesterday = 2017-03-14 15:00:00