You need to sign in to do that
Don't have an account?

i have wrote this formula but it added 1 year to conformation date field so please suggest
i have wrote this formula but it added 1 year to conformation date field so plz suggest
DATE(
year( DOJ__c )
+ floor((month(DOJ__c) + 6)/12) + if(and(month(DOJ__c)=12,6>=12),-1,0)
,
if( mod( month(DOJ__c) + 6, 12 ) = 0, 12 , mod( month(DOJ__c) + 6, 12 ))
,
min(
day(DOJ__c),
case(
max( mod( month(DOJ__c) + 6, 12 ) , 1),
9,30,
4,30,
6,30,
11,30,
2,if(mod((year(DOJ__c)
+ floor((month(DOJ__c) + 6)/12) + if(and(month(DOJ__c)=12,6>=12),-1,0)),4)=0,29,28),
31
)
)
)
DATE(
year( DOJ__c )
+ floor((month(DOJ__c) + 6)/12) + if(and(month(DOJ__c)=12,6>=12),-1,0)
,
if( mod( month(DOJ__c) + 6, 12 ) = 0, 12 , mod( month(DOJ__c) + 6, 12 ))
,
min(
day(DOJ__c),
case(
max( mod( month(DOJ__c) + 6, 12 ) , 1),
9,30,
4,30,
6,30,
11,30,
2,if(mod((year(DOJ__c)
+ floor((month(DOJ__c) + 6)/12) + if(and(month(DOJ__c)=12,6>=12),-1,0)),4)=0,29,28),
31
)
)
)
try with this formula . Syntax of this formula is correct but I havent check with the result.
NOTE: Here replace the timeline__c with the DOJ__c.
Explanation of this formula:
Let me know if you face any queries/face any issues.
Thanks and Regards,
Sai Krishna Tavva.
All Answers
what is you explain your requirement. I didnt get you. could you please elaborate your question.
Thanks and Regards,
Sai Krishna Tavva.
try with this formula . Syntax of this formula is correct but I havent check with the result.
NOTE: Here replace the timeline__c with the DOJ__c.
Explanation of this formula:
Let me know if you face any queries/face any issues.
Thanks and Regards,
Sai Krishna Tavva.
Hope you are not facing any issues. if any please provide the details about it here, else please mark the answer as best answer as it might helpful to others.
Thanks and Regards,
Sai Krishna Tavva.
Sorry for delay.I havent seen due to some work. I have modified the code and checked as well . Please check the answer in this post Url.
https://developer.salesforce.com/forums/ForumsMain?id=906F0000000kCv1IAE
Please mark the answer as best Answer if it works.
Thanks and Regards,
Sai Krishna Tavva.