My school command is this:
The function-including getLocalDay Advocate Written below is returned the day of the week as integer.
It was 0 Sunday, Monday 1, Tuesday 2 etc ..
In some countries (including The Netherlands) is the first day of the week Monday. Make sure this function THAT THAT's how it works Monday, Tuesday, Wednesday, Thursday, Friday, Saturday and Sunday as integers respectively 0 to 6 is returned. So 0 = Monday / Tuesday = 1/2 = Tuesday / Thursday = 3/4 = Friday / 5 = Saturday / Sunday 6 =
I got this
function getLocalDay(date) {
var day = date.getDay();
var weekday=new Array(7);
weekday[0]="Monday";
weekday[1]="Tuesday";
weekday[2]="Wednesday";
weekday[3]="Thursday";
weekday[4]="Friday";
weekday[5]="Saturday";
weekday[6]="Sunday";
console.log("Today is " + weekday[3]);
var d=new Date();
console.log(d.getDay());
}
but i want to return numbers from that day.....