Returns a new DateRange relative to the CalculationDate starting at the beginning of the week that contains the CalculationDate extending up to and including the CalculationDate.
var date = now.valueOf('2017-03-15');
var range = date.weekToDate();
console.log('Date range = %s', range);
//Date range = 2017-03-13 00:00:00 -> 2017-03-15 00:00:00