showing results for - "javascript get day"
Mads
17 Nov 2016
1switch (new Date().getDay()) {
2  case 0:
3    day = "Sunday";
4    break;
5  case 1:
6    day = "Monday";
7    break;
8  case 2:
9    day = "Tuesday";
10    break;
11  case 3:
12    day = "Wednesday";
13    break;
14  case 4:
15    day = "Thursday";
16    break;
17  case 5:
18    day = "Friday";
19    break;
20  case 6:
21    day = "Saturday";
22}
23
Eric
10 May 2017
1var d = new Date();
2var n = d.toLocaleString("en-US", { "weekday": "long" }); // Monday
3n += "\n" + d.toLocaleString("en-US", { "weekday": "short" }); // Mon
4n += "\n" + d.toLocaleString("en-US", { "weekday": "narrow" }); // M
Veronica
10 Mar 2018
1var d = new Date();
2var n = d.getDay();
queries leading to this page
how to get day in jshow to get day of the date in javascriptw3 js get dayday of week jsjavascript get day of weekget the current day in javascriptjs get day to dayget current day jsget day from date javasciptdate getget date day jsget week day jsget weekday in jsget current day of the week javascriptjs get day nowhow to get day out of date in javascriptjs date 28 29 get dayjavascript date get weekdayget day by javascriptjavascript get day number from dateget day name in javascriptget day of week javascriptget day from date javascriptjs get weekdaycurrent day of week jsjavascript get day of week from datejavascript date get daydate get day of week javascriptjavascript get day of the week from datejs date 28 29 return day name from epochget day of the current date in javascriptjavascript get day of week from date stringjavascript day of weekjs day of the weekjs get day from datejs date get weekdayhow to get day on from data in jsjavascript date getdaywrite a function that takes in a number and returns the corresponding day of the week jshow to find day in javascriptrjs date day of weekget weekday from date javascriptjavascript get weekday numberhow to get day from date in javascriptday of the week javascripthow to get day from date javascript how to get day of the week in javascripthow to get day javascriptextract day from date javascripthow to get day from date jshow to calculate your birthday day of the weekusing javascript using getday methodget day from datetime javascriptget date of the day javascriptjavascript get day from datehow to get the date of the day in jsget day from date in jsjavascript get dayjavascript get current dayjavascript get day nowhow to get a day in javascriptjavascript get day of week numbera function that retrieves the name of the day of the week according to the index given in the table jsget the day from date in javascriptget day javascriptjs getday get day from date jsjquery date get dayjs get current daydate to weekday jsjs get day of weekget today 27s day javascriptjavascript get day number of dateget day in string in using date object javascriptjs get date dayjavascript date get day of weekjavascript date get day numberget day of the week jsjs dayofweekhow to get day of date in javascriptjs date getday 28 29how to return day of the week javascriptcurrent day in javascriptdate object get day javascriptgetday jsgetday javascripthow to get date day in javascriptget week day from date javascriptjavascript get day datetimejavascript to get dayjs to dayday javascriptjs get day in weekjavascript date day of weekhow to get the day jsjavascript new date get dayget current day of week jsdatetime get day only jsday of the week jsget day jsin angular 8 get day from date nowget day from dateget day of week from date jsjs day of weekget day number from date javascriptget day number date javascripthow to get day in javascriptget day by date javascriptday javascript dateget weekday with javascript datejavascript get this dayhow to get the day from date in javascriptjavascript get day from current datejavascript getdayget current day javascriptjs get daydate format js getdayjavascript today 27s date monday 2ftusday find day using javascriptfind day from date javascriptget day of the week from date jsget the day from date jshow to get day number from date in javascriptjs gert day of weekjson get week jsget the day javascriptjavascript get day