G
Guest
I have an application that exports files to a customer. The customer wants
the app to be run serveral times a day so we will need to add a time stamp to
the date stamp already in place.
I tried to use this.
strNewFileName = sAppPath & "DDPPOP-" & Format(Now(), "mm-dd-
yyyy_hh:m:ss_AM/PM") & ".csv"
strNewFileName = Replace(strNewFileName, ":", ".")
I got an error Path Not Found. I think it's because it removed the : out of
the C:\
part of the path. is there a format for a time stamp that does not include
colons?
the app to be run serveral times a day so we will need to add a time stamp to
the date stamp already in place.
I tried to use this.
strNewFileName = sAppPath & "DDPPOP-" & Format(Now(), "mm-dd-
yyyy_hh:m:ss_AM/PM") & ".csv"
strNewFileName = Replace(strNewFileName, ":", ".")
I got an error Path Not Found. I think it's because it removed the : out of
the C:\
part of the path. is there a format for a time stamp that does not include
colons?