• + 1 comment

    Here is a simple solution without using any map or map object.

    let dayName = new Date(dateString).toLocaleDateString(undefined, {weekday: "long"});
    return dayName;