This content has been marked as final. Show 3 replies
I'm facing a problem with the inyeartodate() function.
I'm trying to calculate the boolean result that inyeartodate() gives, working on two years. This means that I have some data like this:
date(date) as InlineDate
Using those formulae:
=InYearToDate(InlineDate, now(0), 0) // for the current Year
=InYearToDate(InlineDate, now(0), -1) // for the past Year
Everything works fine.
The problem is that as I try to do the same thing with some database data, the second formula does not work.
The Date Field in the database is imported with the function date(), so it is tagged as date. The difference is that in the inline example the InlineDate is not tagged as ascii and text, and in the database example yes. Is it probably the problem?
Also, it bemuse me the fact that in the second example, the ...0) formula works, but the ...-1) no.
Do you have any idea to solve this?
Thanks in advance.