When creating a delimited file how do I put the date in the file name?
Also if the file is created at 12:01 on Jan 21 how do I make the date say Jan 20?
Dim dteW As Date
dteW = Now
' if day start at 6:00 A.M.
dteW = DateAdd("h",-6,dteW)' Subtract 6 hours
strFilenameDate = strFileName & "-" & Format(dteW,"yyyy-mm-dd-hh-nn-ss"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.