How do I filter out / query all the commissions that's within the last month?
I have a background task that's activated every 1st of the month to pay my affiliates a commission. How do I filter out / query all the commissions that's within the last month? Problem is that some months have 30 days, some months have 31 days, and so on...
Example:
On the 1st of October, I want to process all the commissions that came in from 1 Sept to 30 Sept.
On the 1st of November, I want to process all the commissions that came in from 1 Oct to 31 Oct.
And so on…
Answers
-
Hi,
I think you might want to look at this documentation regarding time&date transformation
https://docs.xano.com/working-with-data/timestampEspecially here:
I think you need one of these transformations if I'm not mistaken
Hope that helps.
-
Hi Raelyn
I recorded a video on how you can go about querying a table by a specific month.
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback