function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sashamsasham 

Sending date from VF classic for created date for query in apex controller

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 quer
for 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 
Aslam ChaudharyAslam Chaudhary
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.