HTML and CSS Reference
In-Depth Information
using
Date
Objects and MethOds
The
getDate()
method returns the day
of the month, the
getMonth()
method
returns the month number starting with
0 for January, and th
e
getFullYear()
method returns the f
o
ur-digit year value.
The
getSeconds(
)
method returns
the seconds value,
t
he
getMinutes()
method returns the minutes value, and
the
getHours()
method returns the
hours value in 24-hour time.