Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.
Computer Hope forum e-mail issues and down time
0 Members and 1 Guest are viewing this topic.
@echo offclssetlocalfor /f "tokens=1-4 delims=/ " %%a in ("%date%") do ( set bc=%%b%%c set d=%%d)echo %bc%%d:~2%
@echo offset digit=%DATE:~12,2%echo %digit%pause
I think they want DD/MM/YY
getting only the last 2 digits of the year
I want only the 09 out of 2009
Radical or not it seems to me to be a better assumption that, based on the OP's script, the OP wants to return the date in either ddmmyy or mmddyy format.
if %date%==*/*/2009 echo 09