I was just wondering, in Windows 7 and above, is it possible to change the way dates and times are displayed via the command prompt? Yes, I'm in the U.S. but I like doing things the European way:
(In Clock/Language/Region)
Short Date: Set as "d/M/yyyy"
Long Date: Set as "dddd, d MMMM yyyy"
Short Time: Set as "HH:mm"
Long Time: Set as "HH:mm:ss"
Yes, it's possible e.g. using
reg add
command.Check the
HKEY_CURRENT_USER\Control Panel\International
registry key:For instance, query Short Time format:
and set it to desired value:
If value name or data contains spaces, use double quotes (surrounding double quotes would not be written to registry):
X:>echo %date:~10,4%%date:~4,2%%date:~7,2% 20181110