Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

moment in html

<html>
   <head>
      <title>MomentJS - Working Example</title>
      <script type = "text/JavaScript" src = "https://MomentJS.com/downloads/moment.js"></script>
   </head>
   <body>
      <div id = "todaysdate"></div>
      <script type = "text/JavaScript">
         var a = moment().toString();
         document.getElementById("todaysdate").innerHTML = a;
      </script>
   </body>
</html>
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #moment #html
ADD COMMENT
Topic
Name
4+5 =