Date format wrong

  • Thread starter Thread starter Uyyy
  • Start date Start date
U

Uyyy

Hi!.
I have following lines into a script to get actual date in yearmonthday
format, but i don't know what happen one of my machines because it shows
090603 instead 20090603. This machine had a virus although is clean now.

Any one knows what could be wrong?
Thanks.

for /f "usebackq tokens=1,2,3 delims=/" %%i IN (`DATE /T`) do set
tmpfecha=%%k%%j%%i
for /f "usebackq tokens=1,2,3 delims= " %%i in (`echo %tmpfecha%`) do set
mifecha=%%i%%k%%j

echo %mifecha%
 
all seems to be ok.

Peter Foldes said:
Control Panel\Regional and Language Options\Customize

--
Peter

Please Reply to Newsgroup for the benefit of others
Requests for assistance by email can not and will not be acknowledged.
 
Back
Top