Hi Everybody
I'm trying to set date('now') using dbutils in a sqllite db.
I've some problem the date('now') seems to be resolved as string instead of a date function.
Maybe the issue is the SqlLite itself.
If I look to the value in datacreazione field i find the litteral Date('now') instead of yyyy-mm-dd...
Does anybody have the same problem. I could extract the value for date but this is a too simple workaround!!!
Grazie a tutti
Mauro
I'm trying to set date('now') using dbutils in a sqllite db.
I've some problem the date('now') seems to be resolved as string instead of a date function.
Maybe the issue is the SqlLite itself.
If I look to the value in datacreazione field i find the litteral Date('now') instead of yyyy-mm-dd...
B4X:
Dim ListOfMaps As List
ListOfMaps.Initialize
Dim m As Map
m.Initialize
m.Put("Id", Main.codpratica)
m.Put("cognome", edittext1.text)
m.Put("nome", edittext2.Text)
m.Put("tipo",edittext3.text)
m.Put("tag",edittext4.Text)
m.Put("datacreazione", "Date('now')")
m.Put("livello",Main.livello)
m.Put("utente",Main.userx)
ListOfMaps.Add(m)
DBUtils.InsertMaps(Main.SQL, "pratiche", ListOfMaps)
Does anybody have the same problem. I could extract the value for date but this is a too simple workaround!!!
Grazie a tutti
Mauro