I want to display the name of the day from a given date. I have a code that can give me the name's day from the system's date.
@for /F "tokens=1 delims=, " %%i In ('powershell date') do set dow=%%i
echo %dow%
How can I be able to display the day's name of any date that I will put in? I want to do something like this (I have already set the variables day, month and year before):
@for /F "tokens=1 delims=, " %%i In ('powershell %day%/%month%/%year%') do set dow=%%i
echo %dow%