|
|
|
|
È£»§¸Ç / 2003-04-16 / ¿ÀÀü 10:54:35 / 211.39.183.253
Á¶È¸¼ö : 191
|
[Áú¹®] FSO.DateCreated ³¯Â¥¸¦ SQL datetime¿¡ ÀúÀåÇÏ·Á¸é? |
¾È³çÇϽʴϱî? °í¼öºÐµé....
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.GetFolder(Server.MapPath(strPath))
strBirth = fileItem.DateCreated
Çϸé strBirth´Â ´ÙÀ½°ú °°Àº ÇüÅÂÀÇ °ªÀ» °¡Áö°Ô µË´Ï´Ù.
2003-04-10 ¿ÀÈÄ 6:45:03
ÀÌ ³¯Â¥¸¦ SQL ¼¹öÀÇ datetime(8) ¿¡ ´ÙÀ½°ú °°ÀÌ Insert¸¦ Çϸé
strSQL = "insert into TEST (name, datenow) " & _
" values ('"& strName &"', '"& DateValue(strBirth) &"')"
" Microsoft OLE DB Provider for SQL Server (0x80040E57)
¹®ÀÚ¿À̳ª ÀÌÁø µ¥ÀÌÅÍ´Â À߸³´Ï´Ù. "
¶ó´Â ¿¡·¯¸Þ½ÃÁö°¡ ³ª¿É´Ï´Ù. ¿¡·¯¸Þ½ÃÁö°¡ ³ª¿À±ä ÇÏÁö¸¸ Å×À̺íÀÇ ³»¿ëÀ» º¸¸é
µÞºÎºÐ ½Ã°£µ¥ÀÌÅÍ´Â Àß·ÁÁö°í ¾ÕºÎºÐ ³¯Â¥ ºÎºÐ¸¸ ÀԷµǾî ÀÖ½À´Ï´Ù.
2003-04-10 00:00:00.000
ÀÌ·¸°Ô ÀÔ·ÂÀÌ µË´Ï´Ù.
ÀÌ·²°æ¿ì ¾î¶»°Ô Çϸé Á¤È®ÇÑ datetimeÀ» ÀÔ·ÂÇÒ ¼ö ÀÖ´ÂÁö¿ä?
|
|
|