Here is my attempt:
rs = statement.executeQuery("select * from geninfo where DeviceTag='" + deviceTag + "' and timestamp='date('"+fromYear + "-" +fromMonth + "-" + fromDay + "')';");
It will look similar to this:
select * from geninfo where timestamp='date('2013-07-08')';
The error is (near "2013": syntax error)
The value stored is "2013-07-08 09:08:51"
I want to select all the data of a certain day. Also, would it be easier to just store another column as a date object?