set

英[set] 美[sɛt]

vt. Set; place, arrange; put in a certain situation; place tableware

vi. Setting off; setting off; condensation

n.Gathering; a set; a set; a TV set

adj. Fixed; located in...; stubborn; arranged The

third person singular: sets plural: sets present participle: setting past tense: set past participle: set

##full

英[fʊl] Beautiful [fʊl]

adj. Full, filled; complete, complete; rich; detailed

adv. Extremely, very; fully, completely; whole; directly

n.all;complete;full,complete;at its peak

v.to sew clothes wide;to sew pleats on skirts;[print]steaming, rinsing

Comparative: fuller Superlative: fullest

year## English[jɪə(r)] US[jɪr]

n .year;age;a period of one year;students of a certain grade

Plural: years

javascript setFullYear() method syntax

Function: is used to set the year.

Syntax: dateObject.setFullYear(year,month,day)

Parameters: year Required. A four-digit integer representing the year. Expressed in local time. month is optional. A numerical value representing the month, between 0 and 11. Expressed in local time. day is optional. Represents the value of a certain day of the month, between 1 and 31. Expressed in local time.

Return: Returns the millisecond representation of the adjusted date.

Note: This method is always used in conjunction with a Date object.

javascript setFullYear() method example

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<script type="text/javascript">
//通过 setFullYear() 把年份设置为1992
    var d = new Date()
    d.setFullYear(1992)
    document.write(d)

</script>

</body>
</html>

Run instance »

Click the "Run instance" button to view the online instance