Is it possible to set date format from command prompt?

  • Thread starter Thread starter Sean
  • Start date Start date
S

Sean

In Win2K, is it possible to change the date format to a
specific setting (like mm/dd/yyyy) using a command line?
The only way I see its possible is by manually going into
regional settings. I need au automated method.

Thanks in advance,
Sean
 
Sean said:
In Win2K, is it possible to change the date format to a
specific setting (like mm/dd/yyyy) using a command line?
The only way I see its possible is by manually going into
regional settings. I need au automated method.

Thanks in advance,
Sean

Can't think of a reason to change to the most evil format possible :-)

The usual way is to either search the registry for the proper value or
to use a tool like regmon from www.sysinternals.com to see what is
changed when you do it manually.

Guess where this key is for:
HKEY_CURRENT_USER\Control Panel\International

You can either export (with regedit) and change that key and import to
the destination Pc/User or use reg.exe (included with xp or in the
reskit/rktools from w2k) to directly change it.

HTH
 
Perfect,

This works:
reg update "HKEY_CURRENT_USER\Control
Panel\International\sShortDate"=mm/dd/yyyy

Thanks for your help,
Sean
 
Back
Top