capture today's date in a variable? - TechRepublic
General discussion
June 19, 2000 at 02:05 PM
sun100mon

capture today’s date in a variable?

by sun100mon . Updated 25 years, 11 months ago

I am trying to rename my backup file to include today’s date in a script and run as a *.bat file.
set /a today=%date/t%
set /a today=date/t
set today=date
all did not work.

Can you shed some light on this?

thanks
andrew

This discussion is locked

All Comments