This question already has an answer here:
- ISO week number in CMD 3 answers
Hi Not sure if anyone can help me.
How can I convert current date to week number in a batch scripting?
I only know how to generate current date from my pc. %DATE%
eg. 3/16/2017 is week 11
use this:
Pure Batch Solution. Credit to Ritchie Lawrence
Alternatively, call Powershell from the batch file with a simple one-liner: