Current time javascript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • megri
    Administrator

    • Mar 2004
    • 968

    Current time javascript

    Here is code FREE Current time javascript

    <script language="Javascript">
    <!-- Begin current time
    // Script
    var theTime = new Date();
    var theHour = theTime.getHours();
    var theMinu = theTime.getMinutes();
    var theSeco = theTime.getSeconds();
    var AMPM = ' AM';
    if (theHour > 12) {
    theHour = theHour - 12;
    AMPM = ' PM';
    }
    if (theHour == 0)
    theHour = 12;
    document.write(theHour + ':' + theMinu + ':' + theSeco + AMPM);
    //-->
    </script>
    Parveen K - Forum Administrator
    SEO India - TalkingCity Forum Rules - Webmaster Forum
    Please Do Not Spam Our Forum
Working...