ÀÏÀÚ¸¦ Æ÷ÇÔÇÑ ¹®ÀÚ¿ ±¸¹®À» ºÐ¼®ÇÏ¿© 1970³â 1¿ù 1ÀÏ ÀÚÁ¤ºÎÅÍ ÇØ´ç ÀÏÀÚ »çÀÌÀÇ ½Ã°£À» ¹Ð¸®ÃÊ·Î ¹ÝȯÇÑ´Ù.
ÇʼöÀûÀÎ ÀÎ ¿ä¼ÒÀ̸ç, "Jan 5, 1996 08:47:00"¿Í °°Àº Çü½ÄÀÇ ÀÏÀÚ¸¦ Æ÷ÇÔÇÑ ¹®ÀÚ¿À̰ųª
ActiveX® °³Ã¼ ¶Ç´Â ´Ù¸¥ °³Ã¼¿¡¼ °Ë»öÇÑ VT_DATE °ªÀÌ´Ù.
¹Ýȯ°ª fpValÀº ÀÏÀÚ ¹®ÀÚ¿¿¡¼ ÃßÃâÇÏ¿© 1970³â 1¿ù 1ÀÏ ÀÚÁ¤°ú dateVal¿¡ ÁÖ¾îÁø ÀÏÀÚ »çÀÌÀÇ ¹Ð¸®Ãʸ¦ ºÎµ¿ ¼Ò¼öÁ¡°ªÀ¸·Î ¹ÝȯÇÑ´Ù.(getTime ¸Þ¼µå ÂüÁ¶).
Áö¿ª»ç°£´ë(time zone)¸¦ ÁöÁ¤ÇÏÁö ¾ÊÀ¸¸é ÇöÁö½Ã°£À¸·Î °£ÁÖÇÑ´Ù.
½Ã°£´ë ÁöÁ¤Àº ¿¹¸¦ µé¸é "Friday, 9 July, 11:10:00 GMT+0900 2002"
parse ¸Þ¼µå´Â Date °³Ã¼ÀÇ Á¤Àû ¸Þ¼µåÀÌ´Ù.
µû¶ó¼ ¹®¹ýÀº Ç×»ó dateObj.parse() ½ÄÀÌ ¾Æ´Ï°í Date.parse() ½ÄÀ» »ç¿ëÇÑ´Ù.
parse ¸Þ¼µå´Â ÀϹÝÀûÀ¸·Î ¸¸µé¾îÁø Date °³Ã¼ÀÇ ¸Þ¼µå¿Í´Â ´Þ¸® ¾Æ·¡ ¿¹Á¦Ã³·³ È£ÃâµÈ´Ù.
var dateString="Fri Jan 24 15:17:20 UTC+0900 2003"; Date.parse(dateString);
´ÙÀ½ ±ÔÄ¢Àº parse ¸Þ¼µå·Î ±¸¹®À» ºÐ¼®Çϱâ À§ÇØ ÁöÄÑ¾ß ÇÒ ±ÔÄ¢µéÀÌ´Ù.
¹®ÀÚ¿ Çü½Ä ¿¹Á¦ : 'Sat Jul 3 00:00:00 UTC+0100 1999' 'Aug 3 2003 UTC+0900' 'Jan 5, 1996 08:47:00'
<SCRIPT> var now=new Date(); document.write('Áö±ÝÀº ÇöÀç ½Ã°¢°ªÀº '+now.getTime()+' ¹Ð¸®ÃÊÀÌ´Ù.<BR>'); document.write('Áö±ÝÀº ÇöÀç parse°ªÀº '+Date.parse(now)+' ¹Ð¸®ÃÊÀÌ´Ù.<BR>'); document.write('ÀÏÀÚ ¹®ÀÚ¿ parse°ªÀº '+Date.parse("May 16 00:16:17 UTC+0900 2003")+' ¹Ð¸®ÃÊÀÌ´Ù.'); </SCRIPT>
±â´ÉÇÔ¼ö¿¡ ÀÏÀÚ¸¦ Á¦°øÇÏ¸é ±â´ÉÇÔ¼ö´Â Á¦°øµÈ ÀÏÀÚ¿Í 1970³â 1¿ù 1ÀÏ°úÀÇ Â÷À̸¦ ¹ÝȯÇÑ´Ù.
<SCRIPT> var br='<BR>'; // ÁÙ¹Ù²Þ var str=''; // Ãâ·Â ¹®ÀÚ¿ º¯¼ö ¼±¾ð var mydate='Aug 3 2003 UTC+0900'; // ÀÏÀÚ ¹®ÀÚ¿ º¯¼ö ¼±¾ð°ú ÇÒ´ç var time=Date.parse(mydate); var now=new Date(); str+='mydate='+mydate+br; str+='Date.parse(mydate)='+Date.parse(mydate)+br; str+='Date.parse(now)='+Date.parse(now)+br; str+='now.getTime()='+now.getTime()+br+br; str+=mydate+'°ú 1970³â 1¿ù 1ÀÏ»çÀÌ´Â '+Math.round(Math.abs(time/1000/60/60/24))+'ÀÏ'+br; str+='ÇöÀç¿Í 1970³â 1¿ù 1ÀÏ»çÀÌ´Â '+Math.round(Math.abs(Date.parse(now)/1000/60/60/24))+'ÀÏ'+br; document.write(str); // °á°ú ¹®ÀÚ¿ Ãâ·Â </SCRIPT>