0

For a custom object, I have two date fields : start date and end date. I want to make sure the end date is greater than start date.

As per https://help.salesforce.com/articleView?id=fields_useful_validation_formulas_date.htm&type=5, I created a validation rule start date > end date which would throw up an error saying end date should be greater than start date. And that works.

I'm confused why the validation rule does not show up when I set the start and end date to the same date.

Why is this happening?

4

Since you would like to also check if your Start Date and End Date are EQUAL, then you need to update your Validation Rule to check if they are GREATER THAN OR EQUAL TO each other.

Example:

Start_Date__c >= End_Date__c
  • Thanks! Was thinking of my validation rule the wrong way – user2582622 Jan 9 '18 at 23:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.