Validation rule on custom date field that is date can not be before 1st May 2022

Validation rules verifies that the data a user enters in a record meets the criteria that you specify, before the the record is saved.

AND(

NOT(ISBLANK(theField__c)),

DATEVALUE(theField__c)  <  Date(2022,05,1) 


)


Another simple Example of validation rule - https://www.youtube.com/watch?v=IkXqE--1QsE

Comments