Date
Widely available
The Date
object represents a single moment in time.
Compatibility
- Chrome 1 Released on 2008-12-11
- Chrome Android 18 Released on 2012-06-27
- Edge 12 Released on 2015-07-29
- Firefox 1 Released on 2004-11-09
- Firefox for Android 4 Released on 2011-03-29
- Safari 1 Released on 2003-06-23
- Safari on iOS 1 Released on 2007-06-29
MDN docs
- Date global object
- Date.Symbol.toPrimitive
- Date.Date
- Date.UTC
- Date.getDate
- Date.getDay
- Date.getFullYear
- Date.getHours
- Date.getMilliseconds
- Date.getMinutes
- Date.getMonth
- Date.getSeconds
- Date.getTime
- Date.getTimezoneOffset
- Date.getUTCDate
- Date.getUTCDay
- Date.getUTCFullYear
- Date.getUTCHours
- Date.getUTCMilliseconds
- Date.getUTCMinutes
- Date.getUTCMonth
- Date.getUTCSeconds
- Date.now
- Date.parse
- Date.setDate
- Date.setFullYear
- Date.setHours
- Date.setMilliseconds
- Date.setMinutes
- Date.setMonth
- Date.setSeconds
- Date.setTime
- Date.setUTCDate
- Date.setUTCFullYear
- Date.setUTCHours
- Date.setUTCMilliseconds
- Date.setUTCMinutes
- Date.setUTCMonth
- Date.setUTCSeconds
- Date.toDateString
- Date.toISOString
- Date.toJSON
- Date.toString
- Date.toTimeString
- Date.toUTCString
- Date.valueOf
Specifications
- ECMAScript Language Specification, from TC39 (Ecma International).
BCD data
- javascript.builtins.Date
- javascript.builtins.Date.@@toPrimitive
- javascript.builtins.Date.Date
- javascript.builtins.Date.UTC
- javascript.builtins.Date.UTC.optional_monthIndex
- javascript.builtins.Date.getDate
- javascript.builtins.Date.getDay
- javascript.builtins.Date.getFullYear
- javascript.builtins.Date.getHours
- javascript.builtins.Date.getMilliseconds
- javascript.builtins.Date.getMinutes
- javascript.builtins.Date.getMonth
- javascript.builtins.Date.getSeconds
- javascript.builtins.Date.getTime
- javascript.builtins.Date.getTimezoneOffset
- javascript.builtins.Date.getUTCDate
- javascript.builtins.Date.getUTCDay
- javascript.builtins.Date.getUTCFullYear
- javascript.builtins.Date.getUTCHours
- javascript.builtins.Date.getUTCMilliseconds
- javascript.builtins.Date.getUTCMinutes
- javascript.builtins.Date.getUTCMonth
- javascript.builtins.Date.getUTCSeconds
- javascript.builtins.Date.now
- javascript.builtins.Date.parse
- javascript.builtins.Date.parse.iso_8601
- javascript.builtins.Date.setDate
- javascript.builtins.Date.setFullYear
- javascript.builtins.Date.setHours
- javascript.builtins.Date.setMilliseconds
- javascript.builtins.Date.setMinutes
- javascript.builtins.Date.setMonth
- javascript.builtins.Date.setSeconds
- javascript.builtins.Date.setTime
- javascript.builtins.Date.setUTCDate
- javascript.builtins.Date.setUTCFullYear
- javascript.builtins.Date.setUTCHours
- javascript.builtins.Date.setUTCMilliseconds
- javascript.builtins.Date.setUTCMinutes
- javascript.builtins.Date.setUTCMonth
- javascript.builtins.Date.setUTCSeconds
- javascript.builtins.Date.toDateString
- javascript.builtins.Date.toISOString
- javascript.builtins.Date.toJSON
- javascript.builtins.Date.toString
- javascript.builtins.Date.toTimeString
- javascript.builtins.Date.toUTCString
- javascript.builtins.Date.valueOf