top | item 11362573 (no title) plugnburn | 10 years ago In JS we can rely on the Date.getDay prototype. Here's the ES6 flavour: weekDay = (dateObj) => ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'][dateObj.getDay()] discuss order hn newest No comments yet.
No comments yet.