I need to make a text on each line to be MM/DD/YY where the leading zeros are kept
This is what I have so far, but it doesn't even run right now. Any help?
Code:
Import String
function getfile(byval filename)
dim fs: set fs = createobject("Scripting.FileSystemObject")
If InStr(FileName, ":\") = 0 And Left (FileName,2)<>"\\" Then
fileName = FS.GetSpecialFolder(0) & "\" & FileName
End If
getfile = fs.opentextfile(filename).readall
End function
Dim inp
inp = getfile("C:\test.csv")
for each line in inp
line = Format(cDate(line),"MM/DD/yy")
next
inp.close()
This is what I have so far, but it doesn't even run right now. Any help?