Date constructor Property - Javascript Date

Javascript examples for Date:constructor

Description

In JavaScript, the constructor property returns the constructor function for an object.

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<p id="demo"></p>

<script>
var d = new Date();/*from  w w  w  .jav a 2s.c o m*/
document.getElementById("demo").innerHTML = d.constructor;
</script>

</body>
</html>

Related Tutorials