Edit This Code:
See Result »
<!DOCTYPE html> <html> <body> <p>The getDay() method returns the weekday as a number:</p> <p id="demo"></p> <script> var d = new Date(); document.getElementById("demo").innerHTML = d.getDay(); </script> </body> <!-- Mirrored from www.w3schools.com/js/tryit.asp?filename=tryjs_date_getday by HTTrack Website Copier/3.x [XR&CO'2014], Sun, 13 Mar 2016 11:03:04 GMT --> </html>
Result: