jcalendar - How to search between two dates in java with Sqlite database -
i using jcalender input date
string from_date = ((jtextfield) txt_bilty_date_start.getdateeditor().getuicomponent()).gettext(); string to_date = ((jtextfield) txt_bilty_date_end.getdateeditor().getuicomponent()).gettext(); string sql = " "; //what query need use
i'm not java pro sql statement
select * posts id = 1 , date between '2011/02/25' , '2011/02/27'
or can use
select * posts id = 1 , date >= '2011/02/25' , date <= '2011/02/27'
Comments
Post a Comment