get date as weekday date and month in javascript 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..