English
<!--To achieve this effect, two steps are required. The first step is: add the following code to the <head> area--> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function formatDate(date) { var mymonth = date.getMonth()+1; var myweekday = date.getDate(); return (mymonth + "month" + myweekday+ "day"); } function printWeek() { var now = new Date(); var nowDayOfWeek = now .getDay(); var nowDay = now.getDate(); var nowMonth = now.getMonth(); var nowYear = now.getYear(); nowYear += (nowYear < 2000) ? 1900 : 0; var weekStartDate = new Date (nowYear, nowMonth, nowDay - nowDayOfWeek); var weekEndDate = new Date(nowYear, nowMonth, nowDay + (6 - nowDayOfWeek)); document.write("Current week: " + formatDate(weekStartDate) + " - " + formatDate( weekEndDate)); } // End --> </script> <!--Step 2: Add the following code to the <body> area --> <script> printWeek(); </script>