javascript today of the week string
1 2 3 4 5 6 7 8 9 10 | <script language="JavaScript"> var now = new Date(); var month = now.getMonth()+1; var week = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"); for(var i=0 in week){ if (i==now.getDay()) toweek = week[i]; } document.write("<table width='800'> <tr align='center'><td>"+now.getDate()+"/ "+month+"/ "+now.getFullYear()+"/ "+toweek+"</td></tr></table>"); </script> | cs |
Excute