Returns the last day of the week in before the week that contains the CalculationDate.

var date = now.valueOf('2017-03-15'); 

var endOfLastWeek = date.endOfPreviousWeek();

console.log('endOfLastWeek = %s', endOfLastWeek);

//endOfLastWeek = 2017-03-12 00:00:00
Did this answer your question?