I am creating a script in Batch that self-downloads the backup of an S3 every day. I already have everything that has to do with the S3Browser but I have a small problem when downloading the last backup (the most recent one). The backups are assigned the name in this date format YYYY-MM-DD (ex: 2018-04-26). How could I make the batch take the% date% of the PC and convert it to the correct format? Here I leave the script so far:
cd %ProgramFiles%\S3 Browser
s3browser-con
s3browser-con.exe download Server:[password] bucket/2018-04-24/ C:\Backups