iOS Question Unparseable date

Erel

Administrator
Staff member
Licensed User
Yes:
B4X:
SetDateTimeLocale ("en_US")

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
 
Top