I need to get the day of the month from a Date object but it seems that the getDay() method returns the day of the week. Is there a function that returns the da
getDay()
var date = new Date().getDate();