You need to sign in to do that
Don't have an account?
Varsha Jethwani
apex code for : end date should set as next date of last payment date
suppose last_payment_date is 31.1.2023
then end_date must be 1.2.2023
So can I write this as
end_date = last_payment_date +1
Thanks in advance
then end_date must be 1.2.2023
So can I write this as
end_date = last_payment_date +1
Thanks in advance
Please try with below code.
Please refer the below link for your reference.
https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_date.htm#apex_System_Date_addDays
If this helps, Please mark it as best answer.
Regards,
Ankaiah Bandi