Hi,
I’m trying to calculate the next anniversary, based on a date field (e.g. a birthday). So today is 2022-12-27. If someone has a birthday of 1992-05-03, his next anniversary would be 2023-05-03.
Now this requires something like a now() or today() function. I have read a post that this function is not there yet (see Date calculation with Formula field). So I’ll settle for that until that is resolved (this exists in Airtable).
The next thing I tried is using filters. The end goal is to connect to a messaging service like Zapier (though I’m using NodeRED) through the API. The problem here is, however, that I fail to find a filter that does this, based on the reference date (like the birthday). There are some ‘ago’ filters, so the concept of now() exists there, but there is no filter that seems to give me what I want.
The third thing I tried is to filter on the receiving end of the API call. This works fine, except for Baserow providing paginated results, so this makes filtering on the receiving end very cumbersome / messy. I think I would know how to do this in NodeRED but I don’t really want to go there for - I hope - obvious reasons.
Any ideas? I sort of like the idea I have in Airtable now, where ‘Date’ is the date of the event like a birthday, and the result of the function is the next/upcoming anniversary.
IF({Date}!="",DATEADD({Date},(DATETIME_DIFF(DATEADD(TODAY(),-1,‘Days’),{Date},‘Years’)+1),‘Years’))
I guess I’ll have to wait for that NOW/TODAY() function.