i need to select two dates from visualforce page (calender ) after cliciking on the button , in apex controller i need to use those two dates for createddate in the querfor example if i select 1/20/2017 and 2/20/207 as dates in my page , the query need to retrive data between those two dates in apex controller
You can direclty use the these variables(both date) in your query.where createddate>:d1.Let me know if this helps else paste your code sample , wil help you.