Edit The Code:
See Result »
Try it Yourself - ©
w3ii.com
<
!DOCTYPE
html
>
<
html
>
<
body
>
<
p
id
="demo"
>
<
/p
>
<
script
>
document.getElementById(
"demo"
).innerHTML =
new
Date(
"03/25/2015"
);
<
/script
>
<
/body
>
<
/html
>
<!DOCTYPE html> <html> <body> <p id="demo"></p> <script> document.getElementById("demo").innerHTML = new Date("03/25/2015"); </script> </body> </html>