Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get local year in js

<html>
   <head>
      <title>JavaScript getFullYear Method</title>
   </head>
   <body>
      <script>
         var dt = new Date("December 30, 2017 21:25:10");
         document.write("getFullYear() : " + dt.getFullYear() );
      </script>
   </body>
</html>
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #local #year #js
ADD COMMENT
Topic
Name
1+7 =