hi
how can i know if the device system clock is set to 12h or 24h?
i try it like this:
but i get an error (java.lang.RuntimeException: Field: is24HourFormat not found in: www.sagital.mysalarynew.main)
from what i see it should be available in DateFormat object but how to do it in b4a?
https://developer.android.com/reference/android/text/format/DateFormat.html
thanks, ilan
EDIT: maybe this may be helpful: http://www.programcreek.com/java-ap....text.format.DateFormat&method=is24HourFormat
how can i know if the device system clock is set to 12h or 24h?
i try it like this:
B4X:
Dim jo As JavaObject = DateTime
jo.InitializeContext
Log(jo.GetField("is24HourFormat"))
but i get an error (java.lang.RuntimeException: Field: is24HourFormat not found in: www.sagital.mysalarynew.main)
from what i see it should be available in DateFormat object but how to do it in b4a?
https://developer.android.com/reference/android/text/format/DateFormat.html
thanks, ilan
EDIT: maybe this may be helpful: http://www.programcreek.com/java-ap....text.format.DateFormat&method=is24HourFormat
Last edited: