Hello everyone,
I have a file that comes in daily that has the format: filename_yyyymmdd.txt. What I need to do is rename only the file that matches today's date. For example: filename_20100419.txt . So I'm trying to use the {DATEFORMAT(yyyyMd)} variable, but that results in: 2010419. Notice that if the month is a single digit (like April), then it doesn't add the 0 in there. Now I could add the zero in the variable, but come October, the job would fail. Any ideas?
More I look at it, I noticed that with a Rename File task, there is no option to file based on filename...is there another way to do this?
Thanks!
Edited by user
2010-04-19T19:34:25Z
|
Reason: Not specified