I want to show specific month with year data according to $ceatedAt property , i am unable to do it , how will i do this ?
TL;DR
User is having trouble with an Appwrite query involving the $createdAt property. They posted their code which included a limit, order, greater than, and not equal operators. They are specifically asking how to filter data based on a specific month and year using the $createdAt property.
Another user suggests converting the date to an ISO 8601 string in UTC before executing the code.
The original user responds that their code now works after making the suggested changes.
Solution: The user needed to format the date as an ISO 8601 string in UTC before executing the query.TypeScript
databaseID,
collectionId,
[
Query.limit(50),
Query.orderDesc("$createdAt"),
Query.greaterThan("$createdAt",date).
Query.notEqual("status","failed"),
]
);```
this code i have written , but its not working at all
Did you format date as an iso 8601 string in UTC?
After converting , my code works , thanks
[SOLVED] Appwrite Query Help with $createdAt property
Recommended threads
- Project restoration button in console
The project restore button in console is taking no effect, i have tried several times and still nothing, it gives same popup if i reload
- 1.9.5 Migration problem
1.9.5 migration problem after run migration command only openruntimes-executor
- Appwrite Sites deployment fails because ...
Appwrite Cloud Sites deployments are failing consistently for both GitHub and manual deployments. The build command completes successfully and packaging also c...