It actually only takes 1 line in a BAT file:
for /f "tokens=1-4 delims=/ " %%i in ('date /t') do echo %%j-%%k-%%l
That like will take the DATE command (which displays output like TUE 05/07/2002) and breaks up each piece between the spaces and the front slashes, and assigns each one to a separate variable.
So in the example, %%j = the month (05)
%%k = the day (07)
and %%l = the year (2002)
and %%i = the day in alpha (TUE)
You could then arrange the variables in any order when you rename your file. For example, after you run the FOR /F command, do this:
copy db_base %j%-%k%-%l%
That would make a copy of your file and call it 05-07-2002 when run today; tomorrow, its 05-08-2002
And yes, in the BAT file, use the double % signs for the FOR /F line, but %letter% in the copy line.
hope this helps