I am using MySQL to filter the date according to the CreationDate.
If I did this without comparing the CreationDate, it will return some results.
use todo;
SELECT *
FROM ToDoItem
WHERE ToDoListID = 1
AND COMPLETED = 1
AND Priority>=2;
However, when I add the comparison with date, there will be no result.
use todo;
SELECT *
FROM ToDoItem
WHERE ToDoListID = 1
AND COMPLETED = 1
AND Priority>=2
AND CreationDate > ´2004-11-18 15:26:58´;
It says there is a "SQL syntax error near '15:26:58' " and the "query interrupted".
I do not why this does not work because I saw some examples on stackoverflow using ">" and "<" to compare two date directly.
Any help would be appreciated. Thank you.