Jump to content
xisto Community
Sign in to follow this  
iGuest

i nee clock

Recommended Posts

I have a JavaScript clock:

<script language="JavaScript"> <!-- var DString; function timedate(){now=new Date(); H=now.getHours(); M=now.getMinutes(); var mydate=new Date()  Day=now.getDate(); month = now.getMonth()+1; year=now.getYear(); var day=mydate.getDay()  var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")  var montharray=new Array("Januari","Februari","March","April","May","June","July","August","September","October","November","December")  if (year< 2000) year+=1900 DString = ""+dayarray[day]; DString+=" " + Day; DString+=" "+montharray[month]; DString+=" "+ year; DString+="; " + H;  DString+=((M < 10) ? ":0" : ":")+M; document.datum.datumtijd.value = DString; Timer=setTimeout("timedate()", 1000);} //--> </script><form name="datum"><input type="tekst" name="datumtijd" size="40" value></form>

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.