+ 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!

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.