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
Monishan MMonishan M 

Need to compare two dates- created date of a record and current date and send alert to user

Hi,

I need to compare two dates- 
created date of a record and current date.

At exactly 2months after the record created date I need to alert the user.
Can anyone let me know how to compare two dates and know if it has passed exactly 60 days?

Thanks
 
VinayVinay (Salesforce Developers) 
Hi Monishan,

You can use workflow to achieve use formula (created date__c - TODAY()) and you can sent email alert to the user on the 60th day.

https://help.salesforce.com/articleView?id=customize_wf.htm&type=5

Thanks,
Vinay Kumar