JavaScript Date constructor
Definition and Usage
The constructor property returns the function that created the Date prototype.
For JavaScript dates the constructor property returns:
function Date() { [native code] }
For JavaScript objects the constructor property returns:
function Object() { [native code] }
Browser Support
Date.constructor is fully supported in all browsers:
| Chrome | IE | Edge | Firefox | Safari | Opera |
| Yes | Yes | Yes | Yes | Yes | Yes |
Syntax
Date.constructor
Technical Details
| Return Value: | function Date() { [native code] } |
|---|---|
| JavaScript Version: | ECMAScript 1 |
Related Pages
JavaScript Tutorial: JavaScript Dates
JavaScript Tutorial: JavaScript Date Formats
JavaScript Tutorial: JavaScript Object Constructors

