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 

enter image description here

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

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -

r - Update two sets of radiobuttons reactively - shiny -