Hello,
I have a problem with date filter in a query,
This is the code:
filters: { a!queryFilter( field: "fechaVencimiento", operator:">", value: toDate(now()) ),
fechaVencimiento is date of BBDD.
The problem is that when I execute the query it is returning the last two records, while I should not return anything because those records have the current date but not greater.
Do you know any solution for this?
Regards, and thank you very much
Discussion posts and replies are publicly visible
sandrap845 Please verify the time zone as well, for example, you can try gmt(todatetime(today())) to get the proper result.
gmt(todatetime(today())) to get the proper result.
Hello Malay Doshi:
The test returns the following error, yo creo que es porque fechaVencimiento es de tipo DATE.If I put the toDate with what you were telling me, it doesn't make a mistake but I get records today
you can think of another alternative?