<apex:page standardController=”opportunity” extensions=”oppdate”>
<apex:sectionHeader title=”opportunity close date “/>
<apex:outputpanel rendered=”{!flag}” >you have closed it near by </apex:outputpanel>
</apex:page>
public class oppdate {
public string abc{get;set;}
public boolean flag{get;set;}
public oppdate(ApexPages.StandardController controller) {
//customcont=(Contact)controller.getRecord();
String abc = controller.getId();
opportunity oppobject =[SELECT id,CloseDate FROM opportunity where id = :abc];
if(oppobject.CloseDate >= Date.Today() && oppobject.CloseDate<= Date.Today().addDays(4))
flag=true;
else
flag=false;
}
}
This might Help you If you find this helpful mark it as the best answer. Thanks And Regards, Suraj Tripathi.
Greetings!!
This might Help you
If you find this helpful mark it as the best answer.
Thanks And Regards,
Suraj Tripathi.
onevanilla (https://www.onevanilla.run/)