Vince
I use Ritchie Lawrence's GetDate routine for this issue. It returns the date
in whatever format you want. For your example, this will get you what you
want.
@echo off & setlocal
call :GetDate y m d
echo %m%/%d%/%y%
goto :eof
:GetDate yy mm dd
setlocal & set t=2&if "%date%z" LSS "A" set t=1
for /f "skip=1 tokens=2-4 delims=(-)" %%a in ('echo/^|date') do (
for /f "tokens=%t%-4 delims=.-/ " %%d in ('date/t') do (
set %%a=%%d&set %%b=%%e&set %%c=%%f))
endlocal&set %1=%yy%&set %2=%mm%&set %3=%dd%&goto :EOF
"vince" <(E-Mail Removed)> wrote in message
news:8DFCDA27-EA7E-4FFC-9832-(E-Mail Removed)...
> Hello,
>
> Running Windows 2000 SP4. Regional setting on both Short and Long date
> are
> set to dd/MM/yyyy
>
> In command prompt, when entering echo %date% it gives
> Wed 04/10/2006
>
> Is there a way to get rid of the Wed (day part), I just want the
> dd/MM/yyyy
>
> On XP SP1 or SP2 are fine, the date display correctly. The problem is
> causing havoc on our application passing the date info.
--
Posted via a free Usenet account from
http://www.teranews.com