I have a Google Cloud Datastore Kind, which has the property DataTime. This property is from the type DateTime
.
I want to create a GQL statement the will return all the rows before two days. For example:
SELECT * FROM `Tracing-V1` WHERE StartTime < DATE_ADD(CURRENT_TIMESTAMP(), INTERVAL -2 DAY);
I found here the function of CURRENT_TIMESTAMP()and
DATE_ADD`. Unfortunately, the GQL don't recognize those functions.
I get back the error message:
GQL Query error: Unknown function "DATE_ADD".
Anyone know why? How should I implement it?