Hi I am making a validation rule to check if a billing date end is earlier than the billing date start. My syntax appears to be wrong however.
My current validation formula:
DATEVALUE(Billing_Period_Start__c) > DATEVALUE(Billing_Period_End__c)
Error: Incorrect argument type for function 'DATEVALUE()'.
Fixed by removing DATEVALUE from the validation formula.
Best Answer
It seems that your fields
Billing_Period_Start__c
andBilling_Period_End__c
are of typeDate
, hence the error. Remove theDATEVALUE()
function from your formula and you should be good to go.As mentioned in the
DATEVALUE()
function documentationIts worth noting and reading the tips section of the article given above, out of which, two are related to your issue
tips