Click to See Complete Forum and Search --> : yo, wassup wit dis code???


xataku_nakusute
07-23-2003, 03:54 PM
<script type="text/javascript">
var d=new Date()
var day=new Array
("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var end=new Array
("","st","nd","rd","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","st","nd","rd","th","th","th","th","th","th","th","st")
var month=new Array
("January","February","March","April","May","June","July","August","September","October","November","December")
document.write("Today is"+" "+day[d.getDay()]+", "+the "+d+end[d.getDate()]+" "+"of"+" "+month[d.getMonth()])
</script>

whats wrong wit it?
thanx

David Harrison
07-23-2003, 04:17 PM
document.write("Today is"+" "+day[d.getDay()]+", "+the "+d+end[d.getDate()]+" "+"of"+" "+month[d.getMonth()]) I've uploaded the corrected version.

xataku_nakusute
07-23-2003, 09:41 PM
thanx man!
i tend to make such mistakes a lot....

David Harrison
07-24-2003, 02:57 PM
Happy to help. :)