
October 6th, 2004, 12:05 PM
|
|
Registered User
|
|
Join Date: Oct 2004
Posts: 16
Time spent in forums: 18 m 26 sec
Reputation Power: 0
|
|
Server Date Display on HTML document
Ok i'm trying to grab the date from a specific IPaddress for a server. Can i modify the code below to do that or is there another way to easily accomplish this?
<script type="text/javascript"> var d=new Date()
var weekday=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var monthname=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
document.write(weekday[d.getDay()] + "<br>")
document.write(monthname[d.getMonth()] + " ")
document.write(d.getDate() + ", ")
document.write(d.getFullYear()) </script>
|