Find Number of Days in that month from date entered in Excel

Any Formula to display number of days present in that month for Date entered. Like for "2/5/2022", number of days in that month was "28"