In this article, you will learn what is JavaScript Date constructor Property
In this post, the constructor property returns the function that created the string's prototype
<p id="divdemo"></p>
<script>
var dt = new Date();
document.getElementById("divdemo").innerHTML = dt.constructor;
</script>
Date.prototype.toTimeString()
Returns the "time" portion of the Date as a human-readable string
Date.prototype.valueOf()
Returns the primitive value of a Date object. Overrides the Object.prototype.valueOf() method
Date.prototype.toUTCString()
Converts a date to a string using the UTC timezone
Output
function Date() { [native code] }
JavaScript Date constructor Property
minify code