Returns the day of the month from a given date.
The date object to extract the day from.
Day of the month (1-31).
getDay(new Date(2025, 6, 23)); // 23 Copy
getDay(new Date(2025, 6, 23)); // 23
Returns the day of the month from a given date.