|
|
|
|
À²¸® / 2002-01-05 / ¿ÀÀü 2:09:40 / 61.98.49.233
Á¶È¸¼ö : 161
|
[Áú¹®] ¿À´Ã¿¡ ÇØ´çµÇ´Â ÁÖ¸¦ ³ªÅ¸³»·Á¸é..... |
> ÇÑ°¡Áö¸¸ ´õ ¹°¾îº¸°Ú½À´Ï´Ù
>
> ¿À´ÃÀÌ ÇÑ´ÞÀÇ ¸î¹ø° ÁÖÀÎÁö¸¦ ¾Ë ¼ö´Â ¾øÀ»±î¿ä?
>
> ã¾ÆºÃ´Âµ¥ ±×·± ºÎºÐÀº µü ¶³¾îÁö°Ô ¼³¸íÇØ ³õÀº °÷ÀÌ ¾ø¾î¼...
>
> ½º½º·Î ã¾Æ³»¾ß µÇ´Âµ¥ ÀÚ²Ù ¹°¾î¼ Á˼ÛÇÕ´Ï´Ù.
-----------------------------------------------------------
±×°Å¶ó¸é¾ß ¿À´ÃÀÌ ÇØ´çÇÏ´Â ÁÖ¿¡¼ À̹ø´ÞÀÇ Ã¹Â°³¯ÀÌ ¸î¹ø° ÁÖÀÎÁö ±¸ÇÑ´ÙÀ½¿¡ ÀÌ°É »©ÁÖ¸é °£´ÜÇÏ°Ô ÇØ°áÇÒ ¼ö ÀÖÁö ¾Ê°Ú¾î¿ä?
¿¹Á¦ ¼Ò½º¸¦ ¿Ã·Áµå¸±Å×´Ï Âü°íÇϼ¼¿ä..
---------------------
test.asp
---------------------
<%
Dim curMonth, curYear
curMonth = Month(date)
curYear = Year(date)
firstMonthDay = CDate(curMonth&" "&curYear)
Response.write firstMonthDay&"<br>" 'À̹ø´ÞÀÇ 1ÀÏ¿¡ ÇØ´çÇÏ´Â Date type º¯¼ö¸¦ ¸¸µç´Ù.
firstDayNum = DatePart("ww", firstMonthDay) 'À̹ø´Þ 1ÀÏÀÇ ÁÖ°¡ ¸î¹ø°¿¡ ÇØ´çÇÏ´Â ÁÖÀÎÁö ±¸ÇÑ´Ù.
Response.Write "ÀÌ´ÞÀÇ Ã¹Â°³¯Àº ÀϳâÁß "&firstDayNum&" ¹ø° ÁÖÀÔ´Ï´Ù.<br>"
curDayNum = DatePart("ww", Now) '¿À´ÃÀÌ ¸î¹ø°¿¡ ÇØ´çÇÏ´Â ÁÖÀÎÁö ±¸ÇÑ´Ù.
Response.Write "¿À´ÃÀº ÀϳâÁß "&curDayNum&" ¹ø° ÁÖÀÔ´Ï´Ù.<br>"
resultNum = curDayNum - firstDayNum
Response.Write "¿À´ÃÀº À̹ø´ÞÀÇ "&resultNum+1&" ¹ø° ÁÖÀÔ´Ï´Ù."
Response.Write "<br>"
%>
----------------------
µµ¿òÀÌ µÇ¼Ì³ª¿ä? ^^ |
|
|
|