Skip to content

Instantly share code, notes, and snippets.

@summerscope
Created March 16, 2018 08:05
Show Gist options
  • Select an option

  • Save summerscope/43078ba906b38ecf045eed34b671d607 to your computer and use it in GitHub Desktop.

Select an option

Save summerscope/43078ba906b38ecf045eed34b671d607 to your computer and use it in GitHub Desktop.
<h2>Get the computer's date and time</h2>
<button type="button"
onclick="document.getElementById('demo').innerHTML = Date()">
Click me to display Date and Time.</button>
<p id="demo"></p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment