Expressing current day minus 1 year

I’m writing a constraint, and want to express the following:

“Release date” should be later than 365 days ago (a full year back from today)

How would i write it?

1 Like

Release date > current date/time +(year): -1

is-2017-12-20-22-17-16-104

4 Likes

You’re basically saying today plus 1 year minus 1 year, isnt the result TODAY?

No you’re not adding a year. You’re adding -1, so it’s a subtraction. It says “+(year)”, but it’s + (-1). Bubble doesn’t have a subtraction operator for dates, so you just have to add negative values to subtract.

For example, yesterday would be current date/time +(days): -1

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.