The setDate() function of date object sets day of the month for specified date. Use it for example to sets day of the month.
Syntax