Hi,
I'm using query to get records with current date from database.
Now I need to get Yesterday date (now - 1).
What is simplest way to get yesterday date in string variable?
Currently my query looks like:
Where Today is current day in format "yyyy-MM-dd".
I'm using query to get records with current date from database.
Now I need to get Yesterday date (now - 1).
What is simplest way to get yesterday date in string variable?
Currently my query looks like:
B4X:
"Select * FROM table WHERE (CHID = " & Main.iUserID & " OR CHID = 0) AND InDate = '" & sToday & "' AND (Completed is null or Completed = 0)"
Where Today is current day in format "yyyy-MM-dd".