WHERE ((EventMonth ='" & tempMonth & "') AND (date(EventDate) >= date('NOW')))
Have you tried now in lowercase?
I do : where enddate < date('now')
Admittedly not the same, but you can change the < to >=
If you can I recommend you to store the ticks value instead of a string.
No change for me - sorry
My dates are stored as string data i.e "23 Jan 2014" if that helps
No error - it simply did not return any events at all.
Try this
B4X:Dim myDate as String DateTime.DateFormat = "yyyy-MM-dd" myDate = DateTime.date(DateTime.Now) Log(myDate) WHERE ((EventMonth ='" & tempMonth & "') AND (EventDate >='" & mydate & "'"))
Okay, so if you execute the Query in SQLite browser or Firefox Add On, then play around with the Query to see what does work.. Then you should be able to break it down and get it working, then import into B4A.
WHERE (((EventMonth ='" & tempMonth & "') AND ('EventDate' >='" & myDate & "'))
& Cursor1.GetString("EventDate")
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?