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
subbu naraharisettysubbu naraharisetty 

hello guys i want to built vf for this apex class and there should be picklist showing month and depending on the month the following student list should display?

public class studentMonth {
    //list<student__c> which returns the students 
    public static list<student__c> student(date d){
        //take the start of month
        date sd=d.toStartOfMonth();
        //add 30 days to the start of month
        date en=sd.addDays(30);
        list<Student__c> st=[select name,id,Email__c from Student__c where Date_of_Birth__c>=:sd and Date_of_Birth__c<=:en];
     //  system.debug(st);
       return st;
       //list<Student__c> s=studentMonth.student(date.newInstance(1996, 10, 19));
subbu naraharisettysubbu naraharisetty
hello answer or logic please