Whenever I try to echo %date% on my machine (Windows7) the output is always the day:
C:\> echo The output is: %date%
The output is: Tue
However, when I try this to other machines (Windows 7) the output is different:
C:\> echo The output is: %date%
The output is: Tue 06/06/2017
Anyone had experienced this issue? Any suggestion?
Thanks!!!
set "date="and try again. Looks like you created a variable%date%by mistake, which overrides the systemvariable.cmd!GetEnvVarimplements this pseudo-environment variable (it is not a system environment variable) viacmd!PrintDate, which gets the user default locale viaGetUserDefaultLCIDand theLOCALE_SSHORTDATEformat viaGetLocaleInfo. Then it formats the date string viaGetDateFormat.