Hi,
My jRDC2 server is running!.
Now, I want to get date/time from server and convert it to local time in my b4a project.
Firstly I get date/time from server
Next, I want to convert str1 (that contain server date/time connection successful)
to local time and show.
Thanks
My jRDC2 server is running!.
Now, I want to get date/time from server and convert it to local time in my b4a project.
Firstly I get date/time from server
B4X:
Sub ConnectionTest
Dim j As HttpJob
j.Initialize("", Me)
j.Download("http://201.67.166.90:17180/test")
Wait For (j) JobDone(j As HttpJob)
If j.Success Then
Log(j.GetString)
lblStatus.Text = j.GetString
Dim str1 As String = j.GetString
'xxxxxxxxxxxxxxxx
'I want to convert str1 to local time zone and show.
'xxxxxxxxxxxxxxxx
If str1.Contains(" successful") Then
lblLocalTime.Text = str1.SubString2(24,44)
Else
lblLocalTime.Text =""
End If
Else
Log("Connect error")
lblStatus.Text ="Error connection"
End If
j.Release
End Sub
Next, I want to convert str1 (that contain server date/time connection successful)
to local time and show.
Thanks
Last edited: