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
Linda 98Linda 98 

Date range search fields on vf page..need this asap!!!!!

Hi..
I am having a closed date field on my object.
I am writing a Vf page with some criteria to fetch matching records.
I would give user a chance to select date range like from and to of cloase date and to display those records closed on that range.

Please help..
Best Answer chosen by Linda 98
Linda 98Linda 98
To achieve ths i had created two dummy fields and used as inputfield in vf page.So i am able to display the calender .
ANd then comparing them in apex class..
Thank you....

All Answers

mahendar mmahendar m
create a two inputtext on visualforce page (make them as datetime type in the controller)1)inputtext for start date and 2)inputtext for end date.
Using these two values calculate the time  to fetch the records.


Linda 98Linda 98
To achieve ths i had created two dummy fields and used as inputfield in vf page.So i am able to display the calender .
ANd then comparing them in apex class..
Thank you....
This was selected as the best answer