how to set the locale of datetime.timeformat to English so it does not return time in the current device language like Arabic?
01:23.45 instead of ۰۰:۰۳.۱۳
This is what I'm going to do: Set locale in my app to US and then switch to Arabic only during text input then switch back to US right after, using this
B4X:
Dim jo As JavaObject
jo.InitializeStatic("java.util.Locale").RunMethod("setDefault", Array(jo.GetField("US")))
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.