|
|
|
|
beta / 2000-07-03 / ¿ÀÀü 11:17:35 / 210.205.27.204
Á¶È¸¼ö : 141
|
[Áú¹®] ¿Ã¹Ù¸¥ ¹æ¹ýÀÓ´Ù. :) |
FUNCTION µµ¿ò¸» ±×³É ©¶úÀ½.
¼³¸í
·ÎÄà ½Ã°£À» »ç¿ëÇÏ¿© Date °³Ã¼ÀÇ ¿ù °ªÀ» ¹ÝȯÇÕ´Ï´Ù.
±¸¹®
objDate.getMonth()
Âü°í
ÇùÁ¤ ¼¼°è Ç¥ÁؽÃ(UTC)¸¦ »ç¿ëÇÏ¿© ¿ù °ªÀ» °¡Á®¿À·Á¸é getUTCMonth ¸Þ¼µå¸¦ »ç¿ëÇϽʽÿÀ.
getMonth ¸Þ¼µå´Â Date °³Ã¼ÀÇ ¿ù °ªÀ» ³ªÅ¸³»´Â 0ºÎÅÍ 11±îÁöÀÇ Á¤¼ö¸¦ ¹ÝȯÇÕ´Ï´Ù. ¹Ýȯ°ªÀº ½ÇÁ¦ ¿ù °ªº¸´Ù 1ÀÌ ÀÛ½À´Ï´Ù. Date °³Ã¼¿¡ "Jan 5, 1996 08:47:00"ÀÌ ÀúÀåµÇ¾î ÀÖÀ¸¸é getMonth ¸Þ¼µå´Â 0À» ¹ÝȯÇÕ´Ï´Ù.
¾Æ·¡ ¿¹Á¦´Â getMonth ¸Þ¼µåÀÇ »ç¿ë¹ýÀ» º¸¿©ÁÝ´Ï´Ù.
function DateDemo()
{
var d, s = "¿À´Ã ³¯Â¥: ";
d = new Date();
s += (d.getMonth() + 1) + "/";
s += d.getDate() + "/";
s += d.getYear();
return(s);
}
> > ³âµµ,¿ù,³¯Â¥,½Ã°£,ºÐ±îÁö ºñ±³¸¦ ÇؾߵǴÀµ¥ ¾ÈµË´Ï´Ù.
> > ÈæÈæ~~
> >
> > < SCRIPT LANGUAGE="JavaScript" >
> >
> > today2 = new Date();
> > myyear = today2.getFullYear();
> > mymonth = today2.getMonth()+1;
> > myday = today2.getDate();
> > mytime= today2.getHours();
> > myminutes=today2.getMinutes();
> >
> >
> > today1 = new Date(2000,06,21,09,30);
> >
> >
> >
> >
> > if (today1 < today2){
> >
> > document.write(today2)
> >
> > location.href="win_list.asp";
> >
> > }
> > else if (today1 > today2){
> > document.write(today1)
> > }
> > < /script >
> >
> -----------------------------------------------------------
>
> ÀÚ¹Ù½ºÅ©¸³Æ®±º¿ä... À½...
>
> ÇöÀç º¸´Ñ±î ºñ±³´Â Àß µÇ°í Àִµ¥¿ä...
>
> ¹®Á¦°¡ ¹¹³Ä¸é ÇöÀç ³¯Â¥ÀÇ ´ÞÀÌ ÇÑ´Þ ´Ê°Ô ³ª¿À´Â±º¿ä... -_-+
>
> ¿øÀÎÀ» ¾Ë¼ö°¡ ¾ø³×¿ä....
>
> < SCRIPT LANGUAGE="JavaScript" >
>
> today2 = new Date();
> mymonth = today2.getMonth();
> today2.setMonth(mymonth+1);
>
> today1 = new Date(2000,6,21,9,30);
>
> if (today1 < today2)
> document.write("haha")
> else
> document.write("hihi")
>
> < /script >
>
> ÀÌ·¸°Ô ÇÏ´Ñ±î µÇ±ä µÇ´Âµ¥.. -_-+
>
> ¿Ç¹Ù¸¥ ¹æ¹ýÀº ¾Æ´Ñ°Í °°³×¿ä... ±×·³...
>
>
-----------------------------------------------------------
|
|
|
|