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

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -