The getDay() method of a date object returns a number between 0 and 6 representing the day of the week for the date according to local time. 0 is Sunday and 6 is Saturday

    
    const birthday = new Date('July 20, 2020 21:36:00');

    const day = birthday.getDay();

    console.log(day);
    // 1