Between 1 and the number of days in the given month of the given year.
datetime/datetime.day
datetime.day