Link to home
Start Free TrialLog in
Avatar of GPSPOW
GPSPOWFlag for United States of America

asked on

Coding yesterday's date

Below is a little bit of code I use to add the current date to a file name.

How can I modify the code to add the prior day's date?

copy  D:\DTS\DailyTXN\DAILY_ATB_TXN_DETAIL.txt  "\\pmcfs\groups\Accounting\CHI\DailyTxnData\rca_p1_mt_daily_txn_"%date:~10,4%%date:~4,2%%date:~7,2%".csv"

thank you

Glen
ASKER CERTIFIED SOLUTION
Avatar of Bill Prew
Bill Prew

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of GPSPOW

ASKER

Thank you

I found it very helpful and was able to  modify one of the examples to meet my needs.

Glen