How get data/time independent from localization

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Message
Author
Aacini
Expert
Posts: 1914
Joined: 06 Dec 2011 22:15
Location: México City, México
Contact:

Re: How get data/time independent from localization

#106 Post by Aacini » 26 Oct 2016 22:24

Windows 8.1 Spanish here:

Code: Select all

C:\Users\Antonio\Documents\tests> ver

Microsoft Windows [Versión 6.2.9200]

C:\Users\Antonio\Documents\tests> where /T cmd.exe
    404992   25/07/2012  10:08:20 p. m.  C:\Windows\System32\cmd.exe

Antonio

elzooilogico
Posts: 128
Joined: 23 May 2016 15:39
Location: Spain

Re: How get data/time independent from localization

#107 Post by elzooilogico » 27 Oct 2016 04:32

Code: Select all

C:\Users\miguel>ver

Microsoft Windows [Versión 6.2.9200]

C:\Users\miguel>where /t cmd.exe
    404992   26/07/2012       5:08:20  C:\Windows\System32\cmd.exe

win 8 enterprise es-es. 24 hour time.

jfl
Posts: 226
Joined: 26 Oct 2012 06:40
Location: Saint Hilaire du Touvet, France
Contact:

Re: How get data/time independent from localization

#108 Post by jfl » 10 Nov 2016 08:56

It is not just locale-dependent, it is also user-preference-dependent. On all my systems, whatever their language, I change the user preferences in the Control Panel to display the short dates and times using the ISO format (YYYY-MM-DD HH:MM:SS)
And the where.exe tool obeys it like everything else:

Code: Select all

C:\JFL\Temp>ver

Microsoft Windows [Version 10.0.14393]

C:\JFL\Temp>where /t cmd.exe
    232960   2016-07-16      12:42:36  C:\Windows\System32\cmd.exe

C:\JFL\Temp>

Post Reply