hi, Could the following problem help me, I make a sql query of certain fields and the date field throws me the following...
Of all this chain that is stored in a variable I would like to take only DATE = 2014-11-11 17:38:44
Specifically only 2014-11-11 17:38:44
I can not find a JSON string value inside the JSON String of the established query
(MyMap) {ID=00000, FechaE={date=2017-05-31 11:34:11, timezone_type=3, timezone=Europe/Berlin}
B4X:
{date=2014-11-11 17:38:44, timezone_type=3, timezone=Europe/Berlin}
Of all this chain that is stored in a variable I would like to take only DATE = 2014-11-11 17:38:44
Specifically only 2014-11-11 17:38:44
B4X:
Sub ejecutar_consulta4(Query As String,JobName As String)
Dim job As HttpJob
job.Initialize (consultar, Me)
job.PostString("XXXXXXXXX:XXX:XXX:XXX:XX:X", Query)
End Sub
Sub jobDone (job As HttpJob)
ProgressDialogHide
If job.Success Then
Dim res As String
res = job.GetString
Dim parser As JSONParser
parser.Initialize(res)
Select job.JobName
Case consultar
Dim list1 As List
list1 = parser.NextArray
For i = 0 To list1.Size -1
Dim m As Map
m = list1.Get(i)
log(m)
Dim y As Y
y.y1= m.Get("ID")' numero ID
y.y2= m.Get("Fecha") 'fecha de emision
Next
End Select
Else
ToastMessageShow("Error de conexion", True)
End If
job.Release
End Sub
I can not find a JSON string value inside the JSON String of the established query
(MyMap) {ID=00000, FechaE={date=2017-05-31 11:34:11, timezone_type=3, timezone=Europe/Berlin}