+ Start a Discussion
sandeep reddy 37sandeep reddy 37 

how to instalizes date give that input

i want delete all account records between the 1st to 30th right 
how will performs we
public class transforms {
    public account acc;
    public date start;
    public date  end;
    public transforms(){
        start=new date();
        end=new date();
        end.date.newInstance(1,05,2016);
        start.date.newInstance(25,04,2016);
        acc=new account();
        database.getDeleted(acc, start, end);        
    }
}