|
-
Aug 15th, 2000, 07:20 AM
#1
Thread Starter
Junior Member
I know how to use the FileDateTime function (which returns mmm/dd/yy tt:tt). I would like to know how I can get it to return the date the file was created in the format (Month Day, Year) completely spelled out (ex. October 5, 2000).
Thanks,
Brandr
-
Aug 15th, 2000, 07:31 AM
#2
Addicted Member
Try this..
Code:
MyDate = Format(FileDateTime("c:\whatever.xxx"), "Long Date")
hope this helps
Shaun
-
Aug 15th, 2000, 07:52 AM
#3
Addicted Member
Just be aware that FileDateTime is the last modified date/time not the created unless the file has not been modified.
-
Aug 15th, 2000, 08:10 AM
#4
_______
<?>
Code:
'file information using File Scripting Object (fso)
'date created...
Private Sub Form_Load()
Dim sFile As String
Dim myDate As String
sFile = "c:\my documents\try.txt"
Dim fso As Object
Set fso = CreateObject("Scripting.FileSystemObject")
myDate = fso.getfile(sFile).datecreated
myDate = Format(myDate, "Long Date")
MsgBox "The file " & sFile & " was created on: " & myDate
Unload Me
End Sub
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|