Answers for "js get the week monday to friday date"

0

js get the week monday to friday date

var currentDate = new Date();
var firstday = new Date(currentDate.setDate(currentDate.getDate() - currentDate.getDay())).toUTCString();
var lastday = new Date(currentDate.setDate(currentDate.getDate() - currentDate.getDay() + 7)).toUTCString();
console.log(firstday, lastday)
Posted by: Guest on January-04-2021

Code answers related to "js get the week monday to friday date"

Code answers related to "Javascript"

Browse Popular Code Answers by Language