
Thanks
IF(
(TODAY() - Birthdate_c ) <= 14 ,IMAGE("/birthday/birthday/cakeyellow.png"),
IF(
(TODAY() - Birthdate_c) <= 7 ,IMAGE("/birthday/birthday/cakeyellow.png"),
IF(
(TODAY() - Birthdate_c)= 0 ,IMAGE("/birthday/birthday/cakered.png"),NULL)))
5 件の回答
small cirrection the order should be other way for the IF statements
IF((TODAY() - DATE(YEAR(TODAY()), MONTH(BirthDate__c),DAY(BirthDate__c))) = 0,
IMAGE("/birthday/birthday/cakered.png", "cakered"),
IF((TODAY() - DATE(YEAR(TODAY()), MONTH(BirthDate__c),DAY(BirthDate__c))) <= 14,
IMAGE("/birthday/birthday/cakeyellow.png", "Yellow"),NULL))
the above formula may not work if the Birthdate falls on LeapYear i.e. 29th of February