contents   index   previous   next



Date setYear()

syntax:

date.setYear(year)

where:

year - four digit year, unless in the 1900s in which case it may be a two digit year.

 

return:

number - time in milliseconds as set.

 

description:

This method sets the year of a Date object to the parameter year. The parameter year may be expressed with two digits for a year in the twentieth century, the 1900s. Four digits are necessary for any other century.

 

 


Date toDateString()