I'm attempting to create an apex class that ticks a checkbox on a custom object when a given Date is fewer than 30 days out from today's date. The class is designed to run once a week to check for records that need to be updated on a regular basis. My code is built up of several snippets that I discovered in other threads, and I have no experience with Apex. I'm almost there, but I keep getting the following error: Method does not exist or has an erroneous signature: void DateCheck() from the type CustomersDateCheck.
global class CustomersDateCheck implements Schedulable {
global void execute(SchedulableContext sc) {
DateCheck();}
public static void DateCheck(Customers__c[] objects){
for(Customers__c obj: objects){
if(obj.DateField > Date.today()){
continue;
}
else{
obj.FlowUpdateHelper__c = true;
}
}
}
}