How do I get the current day month and year from inside a Windows cmd script? I need to get each value into a separate variable.
echo %Date:~7,2% gets current day
7 is starting position 2 number of digits to display
echo %Date:~7,2% gets current day echo %Date:~4,2% gets current month echo %Date:~10,4% gets current year