|
-
Oct 9th, 2009, 09:29 AM
#1
Thread Starter
Fanatic Member
date
The following code returns the filedate as:
i.e.
"152009"
"1062009"
...
How can I alter the code to show "152009" as "01052009" notice the 0
Dim fileCreateDate As Date = File.GetCreationTime(strSourcePath)
Dim strImportDate As String = fileCreateDate.Day.ToString() & "" & fileCreateDate.Month.ToString() & "" & fileCreateDate.Year.ToString()
Thanks
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
|