Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DATE Enviroment variable

Status
Not open for further replies.

Smudge1977

Technical User
Nov 12, 2002
64
GB
We use a lot of DOS scripts on our servers and rely on the DATE enviroment variable to help us with this.

What registery key controls the output format of the command
echo %DATE%
Some servers return Mon 07/08/2006 and other return either US or UK format dates with no day.

How can we make sure this is always consistant as there does not seem to be a field in regional settings that reflects the current output of %DATE%
 
HKEY_Current_User\Control Panel\International::sShortDate

Hope this Helps.

Neil J Cotton
njc Information Systems
Systems Consultant
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top