Skip to main content
kirankumar reddy punuru a posé une question dans #Formulas
Hi,

I am having one field called start date which is of type date field  i need to update the field based on the conditiotn and add days  to start date

Like This if(x=y)

{ start date = (today()- end date)}

but iam getting an error due to conversion type, can some help  me to choose any function avl to do this..

thanks..
2 réponses
  1. 8 oct. 2015, 21:20
    Hi Kiran,

    If you need this for Apex then below snippet code would help 

    IF (X == Y){

    Start_Date__c = Start_Date__c.addDays(System.today().daysBetween(End_Date__c));

    }

0/9000