Hi,
I store date values as long in a table of sqlite db.
Now I would like to select data with the certain date, picked with B4XDateTemplate. So I have a date in format "dd.MM.yyyy".
I try with this code, without success:
I do not get any output.
Please help me with some suggestion!
Mario
I store date values as long in a table of sqlite db.
Now I would like to select data with the certain date, picked with B4XDateTemplate. So I have a date in format "dd.MM.yyyy".
I try with this code, without success:
B4X:
Try
DateTime.DateFormat="dd.MM.yyyy"
Dim strgDate As String
strgDate=$"$Date{DateTemplate.Date}"$
Dim Output As String
Dim rs As ResultSet
Private Query As String
Query = "SELECT Data, date(data) as expr from protocol where Data='strgDate'"
rs = Starter.SQL1.ExecQuery(Query)
Output=rs.GetString("expr")
Please help me with some suggestion!
Mario