Hi so I am trying to grab all records that fall between 10 minutes ago and now using this query.
SELECT task_id, task_title, task_assigned_phone_number, task_assigned_name, task_assigned_user_id, task_guest_id, task_creator_id
FROM TASKS
WHERE task_reminder IS NOT NULL AND
task_reminder > ? AND
task_reminder <= ? AND
reminded = 0 AND
task_complete = 0
ORDER BY task_reminder ASC";
I have the schema and SQL query up on sqlfiddle and as you run the query you can see 0 records fall in place. The times I included where based on new Data().getTime() on nodejs. What should I be doing? I tried new Date()..toUTCString() but still having issues.