This site uses cookies for analytics, personalized content and ads. By continuing to browse this site, you agree to this use. Learn more
Microsoft Logo
Gray Pipe
Developer Network Developer Network Developer
Sign in

Subscriber portal

Get tools
  • Downloads
    • Visual Studio
    • SDKs
    • Trial software
      • Free downloads
      • Office resources
      • SharePoint Server 2013 resources
      • SQL Server 2014 Express resources
      • Windows Server 2012 resources
  • Programs
    • Subscriptions
      • Overview
      • Administrators
    • Students
      • Microsoft Imagine
      • Microsoft Student Partners
    • ISV
    • Startups
    • Events
  • Community
    • Magazine
    • Forums
    • Blogs
    • Channel 9
  • Documentation
    • APIs and reference
    • Dev centers
    • Samples
    • Retired content
search clear
We’re sorry. The content you requested has been removed. You’ll be auto redirected in 1 second.
Language Reference Objects (Visual Studio - JScript) Date Object
Date Object Date Object Properties and Methods
Date Object Properties and Methods
Date Object Properties and Methods
Date Object Properties and Methods
TOC
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.
This documentation is archived and is not being maintained.
This documentation is archived and is not being maintained.

Date Object Properties and Methods

Visual Studio 2010
Other Versions
  • Visual Studio 2008
  • Visual Studio 2005
  • View all retired versions

The Date object enables basic storage and retrieval of dates and times.

Properties

constructor Property

prototype Property

Methods

getDate Method

getDay Method

getFullYear Method

getHours Method

getMilliseconds Method

getMinutes Method

getMonth Method

getSeconds Method

getTime Method

getTimezoneOffset Method

getUTCDate Method

getUTCDay Method

getUTCFullYear Method

getUTCHours Method

getUTCMilliseconds Method

getUTCMinutes Method

getUTCMonth Method

getUTCSeconds Method

getVarDate Method

getYear Method

parse Method

setDate Method

setFullYear Method

setHours Method

setMilliseconds Method

setMinutes Method

setMonth Method

setSeconds Method

setTime Method

setUTCDate Method

setUTCFullYear Method

setUTCHours Method

setUTCMilliseconds Method

setUTCMinutes Method

setUTCMonth Method

setUTCSeconds Method

setYear Method

toDateString Method

toGMTString Method

toLocaleDateString Method

toLocaleString Method

toLocaleTimeString Method

toString Method

toTimeString Method

toUTCString Method

UTC Method

valueOf Method

See Also

Other Resources

Properties (Visual Studio - JScript)
Methods
JScript Reference
Show:
Print Export (0)
Print Share
IN THIS ARTICLE

    Dev centers

    • Windows
    • Office
    • Visual Studio
    • Microsoft Azure
    • More...

    Learning resources

    • Microsoft Virtual Academy
    • Channel 9
    • MSDN Magazine

    Community

    • Forums
    • Blogs
    • Codeplex

    Support

    • Self support

    Programs

    • BizSpark (for startups)
    • Microsoft Imagine (for students)
    United States (English)
    • Newsletter
    • Privacy & cookies
    • Terms of use
    • Trademarks
    logo © 2017 Microsoft
    © 2017 Microsoft