CurrentDateTime OQL

2
I am trying to use the DateDiff expression in a OQL query however the syntax seems to be wrong. where DATEDIFF (DAY, Planned_Submission_Date, [%CurrentDateTime%]) <= 14 I get an error at the square bracket of the currentDateTime token. Telling me: "no viable alternative at input '[' please help
asked
2 answers
4

Tokens have to be written as a character string:

where 
DATEDIFF (DAY, Planned_Submission_Date, '[%CurrentDateTime%]') <= 14
answered
0

'[%CurrentDateTime%]'

answered