Search found 3 matches

by rpatel
20 Aug 2015 11:19
Forum: DOS Batch Forum
Topic: Previous Month in YYYYMM Format
Replies: 9
Views: 20840

Re: Previous Month in YYYYMM Format

Thank you everyone for jumping in and providing multiple solutions. I got @Compo's code to work and complete my task.

@foxidrive - To be honest I have no clue other than just the basic of batch files. :D
by rpatel
19 Aug 2015 08:43
Forum: DOS Batch Forum
Topic: Previous Month in YYYYMM Format
Replies: 9
Views: 20840

Re: Previous Month in YYYYMM Format

I just ran the code and worked. Thank you.

Is there a guide or something that brakes down the date syntax?
by rpatel
19 Aug 2015 07:14
Forum: DOS Batch Forum
Topic: Previous Month in YYYYMM Format
Replies: 9
Views: 20840

Previous Month in YYYYMM Format

I need help getting previous month and year in the following format YYYYMM. For example, the file would show 201507 if it runs in August 2015 or 201508 if it runs in September 2015. Using other threads I've got the as following but isn't working properly. @ECHO Off set ff=%date:~10% set aa=%date:~3,...