Hi I am running a batch script to get a current date and perform numerical operations on it.
I get the date by using the following command and then do operations on it (Add, Subtract etc).
But If the date returns a value less than 10 (eg. 09, 08) the operation gives an error.
set dd=%date:~7,2%
set /a dd1=08-1
Invalid number. Numeric constants are either decimal (17),hexadecimal (0x11), or octal (021).
Please help