dayjs day of week code example
Example 1: datepart day of week
SELECT DATENAME(DW,'2007-10-30');
Example 2: get date one week from now javascript
function nextweek(){
var today = new Date();
var nextweek = new Date(today.getFullYear(), today.getMonth(), today.getDate()+7);
return nextweek;
}