Hi,
I can't say if things were always like this, but recently I found that comparing two string whose values are dates causes the error in the subject
java.lang.NumberFormatException: For input string: "2023-01-18"
No problem to convert everything to long values, but why java looks at my string as a number?
Update: even writing like this will fail: oday.As(String)>= B4XPages.MainPage.AppGlobals.TestDay.As(String)
I can't say if things were always like this, but recently I found that comparing two string whose values are dates causes the error in the subject
java.lang.NumberFormatException: For input string: "2023-01-18"
B4X:
'm1 is a map read as the Value of an XCLV item
Dim status As Int = m1.Get("ostatus")
Dim oday As String = m1.Get("oday")
If (status = 0) And (oday>= B4XPages.MainPage.AppGlobals.TestDay) Then 'TestDay = "2023-01-18"
No problem to convert everything to long values, but why java looks at my string as a number?
Update: even writing like this will fail: oday.As(String)>= B4XPages.MainPage.AppGlobals.TestDay.As(String)