I'm trying to print the output value of a date variable in CMD
SET /a lastYear=%date:~6,4%-1 set lastDate=31/12/%lastYear% & echo %lastDate%
But echo prints %lastDate%
Someone knows why I can't see the value of the variable?
Regards
I'm trying to print the output value of a date variable in CMD
SET /a lastYear=%date:~6,4%-1 set lastDate=31/12/%lastYear% & echo %lastDate%
But echo prints %lastDate%
Someone knows why I can't see the value of the variable?
Regards