@requestcodeJul 14.2004 — #This should give you some help. Just change the month and day around where it is being written. <i> </i><html> <head> <title>Write Todays Date</title> </head> <body> <script language="JavaScript"> var mydate = new Date(document.lastModified); var mymonth=mydate.getMonth()+1 // values for month,day,hours,minutes and seconds are check to see if they are less // than 10. If they are a zero is add to the front of them. With out this a single // digit would be displayed. if(mymonth<10) {mymonth="0"+mymonth} var myday=mydate.getDate() if(myday<10) {myday="0"+myday} var myyear=mydate.getFullYear() document.write("document last modified "+mymonth+"/"+myday+"/"+myyear) mynewdate=new Date(document.lastModified).toTimeString() document.write("<br> The time is "+mynewdate) mynewdate=new Date(document.lastModified).toDateString() document.write("<br> The date is "+mynewdate) </script> </body> </html>
@VladdyJul 14.2004 — #First, "language" attribute has bee deprecated for awhile :rolleyes:
Second, this feature belongs to the server side.
Third, here is how you write such function: Date.prototype.toDownUnderString() { var day=this.getDate(); var month=this.getMonth(); return (day<10?'0':'')+day+'/'+(month<10?'0':'')+month+'/'+this.getFullYear(); }