set YYYYMMDD=%DATE:~4,2%-%DATE:~7,2%-%DATE:~10,4% rem Thu 01/01/2019 @ECHO %YYYYMMDD%