Create a Date object with the following value: "January 10, 2015 10:00:00". - Javascript Date

Javascript examples for Date:Quiz

Description

Create a Date object with the following value: "January 10, 2015 10:00:00".

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

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

<script>
document.getElementById("demo").innerHTML = new Date("January 10, 2015 10:00:00");
</script>/*from w w w.  ja  v a2  s .  c om*/

</body>
</html>

Related Tutorials