The setDate() method sets the date of a month.