today = new Date().getDay(); code example
Example 1: javascript get day
var d = new Date();
var n = d.getDay();
Example 2: get name of day javascript
var today = new Date();
console.log(today.getDay()); // sunday = 0, monday = 1, etc..
var d = new Date();
var n = d.getDay();
var today = new Date();
console.log(today.getDay()); // sunday = 0, monday = 1, etc..