Tutorialspoint

Format Date Javascript Program

<html>

 <head>
 <title>JavaScript Dates</title>
 </head>

 <body>

 <script>
 var date, res;
 date = new Date();
 res = date.toISOString();

 document.write(res);
 </script>

 </body>
</html>

Advertisements
Loading...

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