Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript date methods

Date(): Returns today's date and time
getDate(): Returns the day of the month for the specified date according to the local time
getDay(): Returns the day of the week for the specified date according to the local time
getFullYear(): Returns the year of the specified date according to the local time
getHours(): Returns the hour in the specified date according to the local time
getMilliseconds(): Returns the milliseconds in the specified date according to the local time
getMinutes(): Returns the minutes in the specified date according to the local time
getMonth(): Returns the month in the specified date according to the local time
getSeconds(): Returns the seconds in the specified date according to the local time
getTime(): Returns the numeric value of the specified date as the number of milliseconds since January 1, 1970, 00:00:00 UTC
getTimezoneOffset(): Returns the time-zone offset in minutes for the current locale
getUTCDate(): Returns the day (date) of the month in the specified date according to the universal time
getUTCDay(): Returns the day of the week in the specified date according to the universal time
getUTCFullYear(): Returns the year in the specified date according to the universal time
getUTCHours(): Returns the hours in the specified date according to the universal time
getUTCMilliseconds(): Returns the milliseconds in the specified date according to the universal time
getUTCMinutes(): Returns the minutes in the specified date according to the universal time
getUTCMonth(): Returns the month in the specified date according to the universal time
getUTCSeconds(): Returns the seconds in the specified date according to the universal time
setDate(): Sets the day of the month for a specified date according to the local time
setFullYear(): Sets the full year for a specified date according to the local time
setHours(): Sets the hours for a specified date according to the local timesetMilliseconds()
Source by stacksjar.com #
 
PREVIOUS NEXT
Tagged: #javascript #date #methods
ADD COMMENT
Topic
Name
1+2 =