how to check which regional configuration has been use on the computer
Posted on 2007-07-23
how to check which regional configuration has been use on the computer.
Ok experts, he we go again.
I need to know what kind of datatime is been use on the regional config, i mean i want to know this:
If is like this :MM/dd/yyyy hh:nn:ss AM/PM
or this: dd/MM/yyyy hh:nn:ss AM/PM
by the way i don't want to use the registry.
and then create a function that will be like this:
i will have a format datatime save on a string on my prog. Then instead I use strtodatetime i'm going to use this function. This function will see if this string is equal to the right regional config, if not then will change the format datatime to the right datatime.
function convertstrtodatatime(datet : string) : TDateTime
// it will check if the regional config is still the same
// then if not will change this datet to the right format
// then return tdatetime back