Source Code:
Result:
Click the button to execute the
displayDate()
function.
Try it
Edit the code above and click "Submit Code" to see the result.
W3Schools.com
- Try it yourself