I am having trouble trying to compare dates in my sql query:
SELECT restrictions, restrictions_adddate FROM restrictions WHERE id = '555555'
AND restrictions_adddate BETWEEN ? and ?;
Both of the parameters system print in the format ‘mm-dd-yyyy’. I am getting a wrong date format error, but have tried doing it in multiple ways. Any help is appreciated, and if more info is needed, please let me know. thanks.
This should work on any standard compliant DBMS: