728x90
반응형

<html>
<head>
    <title>BLUEB</title>
<SCRIPT LANGUAGE="JavaScript">
<!--
function formatDate(date) {
       var mymonth = date.getMonth()+1;
       var myweekday = date.getDate();
       return (mymonth + "/" + myweekday);
}

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("이번주는 :  " + formatDate(weekStartDate) + " - " + formatDate(weekEndDate));
}
-->
</script>
</HEAD>
<BODY>

<b>
<script>
printWeek();
</script>

</BODY>
</HTML>

728x90
반응형
블로그 이미지

nineDeveloper

안녕하세요 현직 개발자 입니다 ~ 빠르게 변화하는 세상에 뒤쳐지지 않도록 우리모두 열심히 공부합시다 ~! 개발공부는 넘나 재미있는 것~!

,