Your Guide to Professional
Web Site Design and Development

HTML Tips
HTML Codes
Web Development
Web Design Tips
JavaScript Codes
216 Web Safe Colors
CSS Tutorial
JavaScript Tutorial
ASCII Character Codes

 

| Web Site Development | HTML Codes | HTML Tips | Web Design TipsJavascript Snippets | 216 Safe Colors | Symbols | CSS Tutorial | JavaScript Tutorial |

JavaScript Tutorial: JavaScript Date Object Reference

Method

Description

date( ) Returns the current date and time
getDate( ) Returns the date, between the days of 1 and 31
getDay( ) Returns the day of the week, numbered 0 to 6
getMonth( ) Returns the month, numbered 0 to 11
getFullYear( ) Returns the year as a four digit number
getYear( ) Returns the year as a two digit number
getHours( ) Returns the current hour from 0 to 23
getMinutes( ) Returns the current minutes from 0 to 59
getSeconds( ) Returns the current seconds from 0 to 59
getMilliseconds( ) Returns the current milliseconds from 0 to 999
getTime( ) Returns the milliseconds since January 1, 1970
getTimezoneOffset( ) Returns the difference in time between local time and GMT
getUTCDate( ) Displays the day of the month from a Date object specified by universal time - from 1-31
getUTCDay( ) Displays the day of the week from a Date object specified by universal time - from 0-6
getUTCMonth( ) Displays the month from a Date object specified by universal time - from 0-6
getUTCFullYear( ) Displays the four digit year from a Date object specified by universal time
getUTCHours( ) Displays the hour of a Date object specified by universal time - from 0-23
getUTCMinutes( ) Displays the minutes of a Date object specified by universal time - from 0-59
getUTCSeconds( ) Displays the seconds of a Date object specified by universal time - from 0-59
getUTCMilliseconds( ) Displays the milliseconds of a Date object specified by universal time - from 0-999
parse( ) Uses a date string and displays the number of milliseconds since January 1, 1970
setDate( ) Specifies the day of the month 1-31
setMonth( ) Specifies the day of the month 0-11
setFullYear( ) Specifies the year in a Date object - four digits
setHours( ) Specifies the hour in a Date object - 0-23
setMinutes( ) Specifies the minutes in a Date object - 0-59
setSeconds( ) Specifies the seconds in a Date object - 0-59
setMilliseconds( ) Specifies the milliseconds in a Date object - 0-999
setTime( ) Figures a date and time by adding or subtracting milliseconds from January 1, 1970
setUTCDate( ) Specifies the day of the month in a Date object specified by universal time - from 1-31
setUTCMonth( ) Specifies the month in a Date object specified by universal time - from 0-11
setUTCFullYear( ) Specifies the year in a Date object specified by universal time - four digits
setUTCHours( ) Specifies the hour in a Date object specified by universal time - from 0-23
setUTCMinutes( ) Specifies the minutes in a Date object specified by universal time - from 0-59
setUTCSeconds( ) Specifies the month in a Date object specified by universal time - from 0-59
setUTCMilliseconds( ) Specifies the milliseconds in a Date object specified by universal time - from 0-999
toSource( ) Denotes the source code of an object
toString( ) Changes a Date object into a string
toUTCString( ) Changes a Date object into a string specified by universal time
toLocaleString( ) Changes a Date object into a string according to local time
UTC( ) Takes a date and returns the number of milliseconds, according to universal time, since January 1, 1970
valueof( ) Supplies the primitive value of a Date object


Previous

Home



  JavaScript Tutorial: An Introduction to JavaScript
  The Basics of JavaScript
  JavaScript Events
  JavaScript Variables and Arrays
  JavaScript Statements
  JavaScript Functions and Methods
  JavaScript Errors
  JavaScript Food Chain
  Writing JavaScript Code
  JavaScript Object Reference
  JavaScript Events Reference
  JavaScript Functions Reference
  JavaScript Math Object Reference
  JavaScript Array Object Reference
  JavaScript String Object Reference
  JavaScript Date Object Reference

Web Development Tutorials

  Cascading Style Sheets Tutorial: An Introduction to Cascading Style Sheets
  JavaScript Tutorial: An Introduction to JavaScript
  Web Development: A step by step guide to developing a successful Internet business
  HTML Codes Chart: Copy and paste HTML codes for your web page
  HTML Tips: Copy and paste special effect HTML codes for your web page
  Web Design Tips: Tips, tricks, and special effect codes for your web page
  JavaScript Code Snippets: Copy and paste special effect JavaScript codes for your web page
  216 Web Safe Color Chart: Hexadecimal and RGB Color Codes for your web page
  ASCII Character Codes Chart: American Standard Code for Information Interchange character codes chart