Date setDate() Syntax
dateObj.setDate(date_Value);
JavaScript Date setDate() Method
The setDate()
method in JavaScript is used to set the day of the month for a specified date object, according to local time. It allows you to update the day part of the date without changing other parts like month and year.