Chapter 11: Learning JavaScript
522
Method Purpose
getHours() Returns the hours of a Date object (from 0 to 23)
getMinutes() Returns the minutes of a Date object (from 0 to 59)
getSeconds() Returns the seconds of a Date object (from 0 to 59)
getTime()...
More
Chapter 11: Learning JavaScript
522
Method Purpose
getHours() Returns the hours of a Date object (from 0 to 23)
getMinutes() Returns the minutes of a Date object (from 0 to 59)
getSeconds() Returns the seconds of a Date object (from 0 to 59)
getTime() Returns the number of milliseconds since midnight 1/1/1970
getTimezoneOffset() Returns the time difference between the user’s computer and GMT
parse() Returns a string date value that holds the number of milliseconds
since January 01 1970 00:00:00
setDate() Sets the date of the month in the Date object (from 1 to 31)
setFullYear() Sets the year in the Date object (four digits)
setHours() Sets the hours in the Date object (from 0 to 23)
setMinutes() Sets the minutes in the Date object (from 0 to 59)
setMonth() Sets the months in the Date object (from 0 to 11; 0=January,
1=February)
setSeconds() Sets the seconds in the Date object (from 0 to 59)
setTime() Sets the milliseconds after 1/1/1970
setYear() Sets the year in the Date object (00 to
Less