get

英[get] 美[ɡɛt]

vt. Get; catch; persuade; receive (punishment, etc.)

vt.& vi. Arrive, come

vi. Become; start; try to deal with; obtain benefits or wealth

n. Reproduce, cub; profit

Third person singular : gets Present participle: getting Past tense: got Past participle: got gotten

month

## English[mʌnθ] US[mʌnθ]

n. Month, month; time of a month

plural: months

javascript getMonth() method syntax

Function: Returns the number representing the month.

Syntax: dateObject.getMonth()

Returns: dateObject’s month field, using local time. The return value is an integer between 0 (January) and 11 (December).

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

javascript getMonth() method example

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

<script type="text/javascript">

    var d=new Date()

    document.write(d.getMonth())

</script>

</body>
</html>

Run instance »

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