Answers for "displaying full date in javascript time"

0

current time in javascript

new Date().toLocaleString();

>> "09/08/2014, 2:35:56 AM"
Posted by: Guest on December-30-2020
0

display date in javascript

<button onclick="displayDate()">The time is?</button>

<script>
function displayDate() {
  document.getElementById("demo").innerHTML = Date();
}
</script>
Posted by: Guest on November-25-2020

Code answers related to "displaying full date in javascript time"

Code answers related to "Javascript"

Browse Popular Code Answers by Language