if you want to find Monday, then "dayOfWeek" is 1, if on Tuesday it will be 2, etc.
var date=new Date(); getNextDayOfWeek(date, 2);
// this is to search for the next Tuesday
function getNextDayOfWeek(date, dayOfWeek) {
Hope it will be useful for you, thanks
Eann Nov 20 '14 at 11:39 2014-11-20 11:39
source share