-4

I like to display my time local in my page html , javascript , and i can use momentjs ? Please who can help me ?

  • 2
    You should try to search for what you are asking at least once before asking it in SO. Have you tried doing `new Date()` – Anurag Singh Bisht Aug 19 '17 at 17:26
  • See https://stackoverflow.com/questions/18229022/how-to-show-current-time-in-javascript-in-the-format-hhmmss – lumio Aug 19 '17 at 17:31

1 Answers1

0

Simple:

document.body.textContent = new Date().toLocaleTimeString()
Kurt G
  • 52
  • 4