I need a script that will look into a directory and open all files that are from the current date and back say 4 days. I have most of the code to read the files but I can't figure out how to do the datediff.
This is what I currently have:
If DateDiff("d",Now,fil.DateCreated) = -1 Or fil.DateCreated = Now Then
this only does the current date I think.