Returns the day of the month (1 through 31) for the date.
var myDate = new Date(); console.log(myDate.getDate());
The code above generates the following result.