setDate

.setDate( year, month, day )

This method allows you to alter the date set on this Time instance. Setting it to the year, month and day given will update it to those values.

Note that this returns 'this' object, so you can chain method calls.

See also

setTime - setDateTime