I need to know if there is an API call to find out the DATE Setting in the Regional settings "dd/mm/yy".
Is there a way to change it through an API call.
Thanks
Santiago Torres
Printable View
I need to know if there is an API call to find out the DATE Setting in the Regional settings "dd/mm/yy".
Is there a way to change it through an API call.
Thanks
Santiago Torres
check out the GetLocaleInfo API. I have played with it a few times to get what you're after. I'm pretty sure theres a few sites around with it on (can't get to my code at the mo)
Theres probably a SetLocaleInfo as well... though i haven't used that at all.
there ya are, look into those three.Code:Declare Function GetLocaleInfo Lib "kernel32" Alias "GetLocaleInfoA" (ByVal _
Locale As Long, ByVal LCType As Long, ByVal lpLCData As String, ByVal _
cchData As Long) As Long
Declare Function SetLocaleInfo Lib "kernel32" Alias "SetLocaleInfoA" (ByVal _
Locale As Long, ByVal LCType As Long, ByVal lpLCData As String) As Boolean
Declare Function GetUserDefaultLCID% Lib "kernel32" ()
:D