Date setting methods
Like getting methods for accessing information, setting methods are used in order to change, modify or alter an existing date object. You can alter the date(1-31), year, month, the hours though milliseconds and many more.
Once the function is executed the suitable part of the date is also updated. You can recheck your date now.