Change date and time format via command prompt -


i wondering, in windows 7 , above, possible change way dates , times displayed via command prompt? yes, i'm in u.s. doing things european way:

(in clock/language/region)

short date: set "d/m/yyyy"

long date: set "dddd, d mmmm yyyy"

short time: set "hh:mm"

long time: set "hh:mm:ss"

yes, it's possible e.g. using reg add command.
check hkey_current_user\control panel\international registry key:

reg query "hkcu\control panel\international" 

for instance, query short time format:

reg query "hkcu\control panel\international" /v sshorttime 

and set desired value:

reg add "hkcu\control panel\international" /v sshorttime /t reg_sz /d hh:mm /f 

if value name or data contains spaces, use double quotes (surrounding double quotes not written registry):

reg add "hkcu\control panel\international" /v sshorttime /t reg_sz /d "hh:mm" /f 

Comments

Popular posts from this blog

php - Passing multiple values in a url using checkbox -

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -