You are viewing a single comment's thread. Return to all comments →
function getDayName(dateString) { let days = { 0: "Sunday", 1: "Monday", 2: "Tuesday", 3: "Wednesday", 4: "Thursday", 5: "Friday", 6: "Saturday" } let date = new Date(dateString); return days[date.getDay()]; }
Seems like cookies are disabled on this browser, please enable them to open this website
Day 6: JavaScript Dates
You are viewing a single comment's thread. Return to all comments →