Hi,
Just trying to work out how to get the time for UTC +9.30 timezone as an example ?
I have used the following code but the time is 1/2 hour out.
If I change the setimezone to 9.50 then it shows the correct time:
Should I be setting the timezone as UTC+9.50 for when the timezone is UTC+9.30 or am I doing this wrong ?
Just trying to work out how to get the time for UTC +9.30 timezone as an example ?
I have used the following code but the time is 1/2 hour out.
B4X:
Dim lNow As Long
DateTime.SetTimeZone("9.30")
lNow = DateTime.Now
DateTime.DateFormat = "dd MMM yyyy - h:mma"
Log(DateTime.Date(lNow))
If I change the setimezone to 9.50 then it shows the correct time:
B4X:
DateTime.SetTimeZone("9.50")
Should I be setting the timezone as UTC+9.50 for when the timezone is UTC+9.30 or am I doing this wrong ?