Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery get 2 hours frmo now

<html>
   <head>
      <title>JavaScript setHours Method</title>
   </head>
   <body>
      <script>
         var dt = new Date();
         dt.setHours( dt.getHours() + 2 );
         document.write( dt );
      </script>
   </body>
</html>
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #jquery #hours #frmo
ADD COMMENT
Topic
Name
9+9 =