JavaScript

  1. Home
  2. Computing & Technology
  3. JavaScript

Date

By Stephen Chapman, About.com

Definition: The Date class is used to define and manipulate dates. You can obtain the current date and time as well as perform date calculations using this class. This is not a reserved word so you can declare your own variable or function called Date but if you do then you will not be able to use the Date class.
Examples: var today = new Date();

Explore JavaScript

About.com Special Features

JavaScript

  1. Home
  2. Computing & Technology
  3. JavaScript

©2009 About.com, a part of The New York Times Company.

All rights reserved.