dos yesterday's date
Posted: 15 Sep 2009 14:11
I know how to return current date like below.
set year=%date:~10,4%
set month=%date:~4,2%
set day=%date:~7,2%
echo %month%-%day%-%year%
but now I need to return yesterday's date. is it possible?
set year=%date:~10,4%
set month=%date:~4,2%
set day=%date:~7,2%
echo %month%-%day%-%year%
but now I need to return yesterday's date. is it possible?