The getDate() method of a date object returns the day of the month for the date according to local time.

    
    const birthday = new Date('July 20, 2020 23:15:30');

    const date = birthday.getDate();

    console.log(date);
    // 20