I want to change format of system Time display by my program
for example if format of system time is "hh:mm:ss AM"(12 hour clock format) I want to change it to "HH:mm:ss"(24 hour clock format)
is any solution for this purpose?
thankyou my frend
it is a good method for changing time format
but i need to an instruction that change format of system time that runing application be caus to changing windows time format
You must to use SetLocaleInfo function from Win32 API.
procedure SetTimeFormat(tfType24 :Boolean)
LCID := GetSystemDefaultLCID;
if ftType24 then // if format type is 24 hours...
Changed := SetLocaleInfo(LCID, LOCALE_STIMEFORMAT, 'HH:mm:ss')
else // if format type is 12 hours AM/PM
Changed := SetLocaleInfo(LCID, LOCALE_STIMEFORMAT, 'hh:mm:ss');
if Changed then // if no error then notify all app that settings changed
SendMessage(HWND_TOPMOST, WM_SETTINGCHANGE, 0, 0);
I Developed application in C# with crystal reports and created setup file in third party (Advance) Installer.When i installed my application on client system application is working but ...