aScript/Reference/Global_Objects/Date/toLocaleString)
    44. [ ` Date.prototype.toLocaleTimeString() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleTimeString)
    45. [ ` Date.prototype.toString() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toString)
    46. [ ` Date.prototype.toTimeString() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toTimeString)
    47. [ ` Date.prototype.toUTCString() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toUTCString)
    48. [ ` Date.UTC() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/UTC)
    49. [ ` Date.prototype.valueOf() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/valueOf)
  5. Inheritance 
  6. [ ` Object ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)
  7. Properties 
    1. [ ` Object.prototype.constructor ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/constructor)
    2. [ ` Object.prototype.__proto__ ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/proto) Deprecated 
  8. Methods 
    1. [ ` Object.prototype.__defineGetter__() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/__defineGetter__) Deprecated 
    2. [ ` Object.prototype.__defineSetter__() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/__defineSetter__) Deprecated 
    3. [ ` Object.prototype.__lookupGetter__() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/__lookupGetter__) Deprecated 
    4. [ ` Object.prototype.__lookupSetter__() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/__lookupSetter__) Deprecated 
    5. [ ` Object.prototype.hasOwnProperty() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwnProperty)
    6. [ ` Object.prototype.isPrototypeOf() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isPrototypeOf)
    7. [ ` Object.prototype.propertyIsEnumerable() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/propertyIsEnumerable)
    8. [ ` Object.prototype.toLocaleString() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toLocaleString)
    9. [ ` Object.prototype.toString() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toString)
    10. [ ` Object.prototype.valueOf() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/valueOf)

##  In this article

  * Description 
  * Constructor 
  * Static methods 
  * Instance properties 
  * Instance methods 
  * Examples 
  * Specifications 
  * Browser compatibility 
  * See also 

#  Date

JavaScript **` Date ` ** objects represent a single moment in time in a
platform-independent format. ` Date ` objects encapsulate an integral number
that represents milliseconds since the midnight at the beginning of January 1,
1970, UTC (the _epoch_ ).

**Note:** TC39 is working on [ Temporal ](https://tc39.es/proposal-
temporal/docs/index.html) , a new Date/Time API. Read more about it on the [
Igalia blog ](https://blogs.igalia.com/compilers/2020/06/23/dates-and-times-
in-javascript/) . It is not yet ready for production use!

##  Description

###  The epoch, timestamps, and invalid date

A JavaScript date is fundamentally specified as the time in milliseconds that
has elapsed since the [ epoch ](https://tc39.es/ecma262/multipage/numbers-and-
dates.html#sec-time-values-and-time-range) , which is defined as the midnight
at the beginning of January 1, 1970, UTC (equivalent to the [ UNIX epoch
](/en-US/docs/Glossary/Unix_time) ). This timestamp is _timezone-agnostic_ and
uniquely defines an instant in history.

**Note:** While the time value at the heart of a Date object is UTC, the basic
methods to fetch the date and time or its components all work in the local
(i.e. host system) time zone and offset.

The maximum timestamp representable by a ` Date ` object is slightly smaller
than the maximum safe integer ( [ ` Number.MAX_SAFE_INTEGER ` ](/en-
US/docs/Web/JavaScript/Reference/Global_Objects/N