Returns the true if the CalculationDate falls on the end of the week (Sunday), otherwise false.

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

if (date.isEndOfWeek()){

    //doesn’t run

}
Did this answer your question?