For this we can create a dumy object insatnce. We need to make sure the date field which we are going to find be defined in the variable insatnce.
If the visualforce page uses standard controller then we can directly bind using the object field as in the example below:
Visuaklforce page
If it is not a standard controller then we will need to create adumy instance of a object and define a date field as shown in the example below:
Visualforce Page
Controller
good example dear
ReplyDeleteThis will work if you have a predefined date field in controller. What if you want to provide two date fields and return the records created between those two date values
ReplyDeleteNice Example
ReplyDelete