• + 0 comments
    function getDayName(dateString) {
        let dayName=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];
        const day=new Date(dateString).getDay();
        return dayName[day];
    }