Forum Moderators: open
var month = new Date().getMonth() + 1; // Month of year, 1 to 12
let date = new Date();
date.getDate();
let days = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
days.forEach((day,index)=> {
if(index == new Date().getDay()) { console.log("Today is "+day) }
}
) Instead of console.log("Today is "+day)am trying to do this: