Javascript date constructor property returns a reference to the array function that created the instance's prototype.
Its syntax is as follows −
date.constructor
Returns the function that created this object's instance.
Try the following example.
<html> <head> <title>JavaScript Date constructor Property</title> </head> <body> <script type="text/javascript"> var dt = new Date(); document.write("dt.constructor is : " + dt.constructor); </script> </body> </html>
dt.constructor is: function Date() { [native code] }