Good call there Paul as you are correct. Much better DOM compliance there.
~~~~~~~~~~~~ <html> <head> </head> <body> <!-- other stuff here--> <div id="divDateStamp"> </div> <!-- other stuff here--> <script language="JavaScript" type="text/JavaScript"> <!-- Begin var months=new Array(13); months[1]="January"; months[2]="February"; months[3]="March"; months[4]="April"; months[5]="May"; months[6]="June"; months[7]="July"; months[8]="August"; months[9]="September"; months[10]="October"; months[11]="November"; months[12]="December"; var time=new Date(); var lmonth=months[time.getMonth() + 1]; var date=time.getDate(); var year=time.getYear(); var myDateStamp = ""; if (year < 2000){ year += 1900;} myDateStamp = (lmonth + " " + date + ", " + year); document.getElementById("divDateStamp").innerHTML = myDateStamp; // End --> </script> </body> </html> -----Original Message----- From: Paul Larue [mailto:[EMAIL PROTECTED] Sent: Thursday, June 17, 2004 4:02 PM To: [EMAIL PROTECTED] Subject: [wdvltalk] RE: Current date javascript It would anyway be recommended to show date in an element. Create a DIV and then use document.getElementById("ElementName").innerText = lmonth; --- instead of --- document.write("<div align='left'>" + lmonth + " "); Paul ____ • The WDVL Discussion List from WDVL.COM • ____ To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED] To set a personal password send an email to [EMAIL PROTECTED] with the words: "set WDVLTALK pw=yourpassword" in the body of the email. To change subscription settings to the wdvltalk digest version: http://wdvl.internet.com/WDVL/Forum/#sub ________________ http://www.wdvl.com _______________________ You are currently subscribed to wdvltalk as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] To unsubscribe via postal mail, please contact us at: Jupitermedia Corp. Attn: Discussion List Management 475 Park Avenue South New York, NY 10016 Please include the email address which you have been contacted with.