Returns the day of the month for a date as a number between 1 and 31.