Skip Navigation LinksHome Page > Forums > SpiraTeam Forums > Spira Custom Reports > Date Compare in ESQL Quer...
I'm trying to do a date comparison in my custom query so that I can create a report that always reports on the last 30 days of test runs. Unfortunately it appears that every method suggested in the IBM documentation does not work in the custom query.
There are two types of "entity SQL", one by IBM which is not used by Spira, and the other which is from Microsoft, which is the technology being used. So you need to refer to the Microsoft documentation instead:
Well, that certainly helps to know : )
Ok, for any future readers, I was able to solve my issue with the expression:
WHERE DiffDays(TR.END_DATE, CurrentDateTime()) < 30