Knowledge Walls
Ammu
Hyderabad, Andhra Pradesh, India
Passcode:
Date in Examples of Javascript 1
1051 Views
Examples
<!DOCTYPE html>
    <html lang="en-US">
        <head>
            <meta charset="UTF-8">
            <title>string</title>
        </head>
        <body>
            <p id="da"></p>
            <p id="Sec"></p>
            <p id="hour"></p>
            <script>
             
                document.write(Date());
                var d=new Date();
                document.getElementById("da").innerHTML=d.getFullYear();
                document.getElementById("Sec").innerHTML=d.getSeconds();
                document.getElementById("hour").innerHTML=d.getHours();
               
                /*
                  console.log(d.getMonth())
                console.log(d.getDay())
                console.log(d.getDate())
                console.log(d.getFullYear())
                console.log(d.getYear())
                console.log(d.getHours())
                console.log(d.getMinutes())
                console.log(d.getSeconds())
                console.log(d.getMilliseconds())*/
            }
            </script>
           
        </body>
    </html>
Next Topics
Next lessons of current book.
Examples of Javascript 1
Examples of Javascript 1
Previous Topics
Previous lessons of current book.
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Best Lessons of "Javascript 1"
Top lessons which are viewed more times.
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details