Tutorialspoint

JavaScript Date Program

<html>

 <head>
 <title>JavaScript setMinutes Method</title>
 </head>

 <body>

 <script>
 var dt = new Date();
 dt.setMinutes( dt.getMinutes() + 30 );
 document.write( dt );
 </script>

 </body>
</html>

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.