showing results for - "how to get the day name from date in javascript"
Luce
03 Apr 2020
1var days = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
2var d = new Date(dateString);
3var dayName = days[d.getDay()];
4