JAVASCRIPT DATE OBJECT EXAMPLE
Run
<html>
    <head>
        <title>
            Working with Date object
        </title>
    </head>
    <body>
        <script type="text/javaScript">
            var mydate = new Date();
            document.write("Today date is: " + mydate.getDate()+"/"+(mydate.getMonth()+1)+"/"+mydate.getFullYear()+"<br/>");
            document.write("The time is: " + mydate.getHours()+":"+mydate.getMinutes()+":"+mydate.getSeconds()+"<br/>");
        </script>
    </body>
</html>