Is it possible to set locale on fly for DateTime functions ?
My app already has #PlistExtra: <key>CFBundleLocalizations</key> and this works fine, for example in textfield context menu. But there is no effect for DateTime.DateParse, DateTime.Date etc. Any ideas ?
Thanx for reply. I added a subroutine from your link
B4X:
Sub SetDateTimeLocale (locale As String)
Dim loc As NativeObject
loc = loc.Initialize("NSLocale").RunMethod("localeWithLocaleIdentifier:", Array(locale))
Dim no As NativeObject = DateTime
no.GetField("dateFormat").SetField("locale", loc)
no.GetField("timeFormat").SetField("locale", loc)
End Sub