Hi,
I saw a previous question regarding this, but the answer wasnt very clear…
Just wandering how can I find all objects in a table where the ‘created’ date equals the current date of the user? (ie. ‘Today’ for user)
Thanks!
Hi,
I saw a previous question regarding this, but the answer wasnt very clear…
Just wandering how can I find all objects in a table where the ‘created’ date equals the current date of the user? (ie. ‘Today’ for user)
Thanks!
Not sure if this method is the best, but im just doing a comparison if ‘created >= [TodayDateValue] AND created < [TomorrowDateValue]’ and it seems to be working ok so far.
I did something like that. Created column "rankNum" as an INT, and if I wanna arrange ListView in order, just type 1, 2, 3, 4....etc
In code:
<ol>BackendlessDataQuery query = new BackendlessDataQuery();
QueryOptions queryOptions = new QueryOptions();
String whereClause = "rankNum";
queryOptions.addSortByOption(whereClause);
query.setQueryOptions(queryOptions);
Backendless.Data.of(YourClass.class).find(query, new AsyncCallback<BackendlessCollection<YourClass>>() {
// rest of your code
}
</ol>
Hi Simon,
Your method is just fine for this case)
Regards,
Denys
great, thanks for the clarification.