You need to sign in to do that
Don't have an account?
Vamsi
validates that the custom date field is a weekday (not Saturday or Sunday).
Hi,
Can someone please explain me how the below formula works(Not sure why they have particulary used 1900-1-7 and how the case function works ).
Validates that the value of a custom date field is a weekday (not Saturday or Sunday).
Formula: CASE(MOD( My_Date__c - DATE(1900, 1, 7), 7), 0, 0, 6, 0, 1) = 0
Error Message: Date must be a weekday.
Error Location: My Date
Can someone please explain me how the below formula works(Not sure why they have particulary used 1900-1-7 and how the case function works ).
Validates that the value of a custom date field is a weekday (not Saturday or Sunday).
Formula: CASE(MOD( My_Date__c - DATE(1900, 1, 7), 7), 0, 0, 6, 0, 1) = 0
Error Message: Date must be a weekday.
Error Location: My Date
Some like this should be closer to working:
CASE(MOD([Opportunity].CloseDate+180 - DATE(1900,1,6),7),0,[Opportunity].CloseDate+181,6,[Opportunity].CloseDate+182, [Opportunity].CloseDate+180)