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
Arnold Joseph TodasArnold Joseph Todas 

FROM and TO Date Filter

How can i filter my TO and FROM Date to fetch a record? Example i have VF page that have a input field of Date_To and Date_From if i inputed FROM: 19/01/2015 and I Inputed TO: 19/02/2015 all of the record that created yesterday and today will show to pageblocktable.

Thanks for help!

AJ
Rahul Sangwan7341Rahul Sangwan7341
Hi Arnold,

You can put in SOQL query where condition like that (createdDate>= fromDate && createdDate<=toDate) .

Please Select this as Best Answer if it really helps you.Let me know if you are finding any difficulty in this.