You need to sign in to do that
Don't have an account?
nilesh walke
wann test class for it
public static void ForAge(List<contact> con5){
for(Contact c:con5){
Integer days=c.Birthdate.daysBetween(Date.today());
c.Age__c=Integer.valueOf(days/365);
}
}
for(Contact c:con5){
Integer days=c.Birthdate.daysBetween(Date.today());
c.Age__c=Integer.valueOf(days/365);
}
}
Hi Nilesh,
Please find The solution.
Please mark it as the Best Answer so that other people would take references from it
Thank you
All Answers
Hi Nilesh,
Please find The solution.
Please mark it as the Best Answer so that other people would take references from it
Thank you
Try Below Code Please Mark It As Best Answer If It Helps
Thank You!