reg1:=tregistry.Create;<br> reg1.RootKey:=HKEY_CURRENT_USER;<br> reg1.OpenKey('Control Panel/International',true);<br> reg1.writestring('sShortDate','yyyy-MM-dd');<br> reg1.WriteString('sTimeFormat','HH:mm:ss');<br> reg1.CloseKey;<br> reg1.Free;<br>win2000或winnt是这样,如果是WIN9X的话,则用下面的来试试看<br>var <br>str: string; <br>begin <br>str :='yyyy-mm-dd'; <br>if SetLocaleInfoa(LOCALE_SYSTEM_DEFAULT, LOCALE_SLONGDATE , PChar(str)) then <br>begin <br>showmessage('OK!'); <br>end; <br>end; <br>