function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
lokesh lokkilokesh lokki 

i need dob should be past in validation rule

Maharajan CMaharajan C
Hi Lokesh,

Please try the below validation rule:
DOB__c >= TODAY()

Thanks,
Maharajan.C
CharuDuttCharuDutt
Hii Lokesh
Try Below Validation
A
DOB__c >= TODAY()

------
B
DOB__c <= TODAY()
Please Mark It As Best Answer If It Helps
Thank You! 

 
Suraj Tripathi 47Suraj Tripathi 47

Hi,

Please find the solution.

Creating a Validation Rule
From Setup, go to Object Manager and click Account.
In the left sidebar, click Validation Rules.
Click New.
Enter the following properties for your validation rule:
     a. Rule Name: DOB__c
     b. Error Condition Formula:
 DOB__c <= TODAY()

Error Message: Your date of Birth is passed.
To check your formula for errors, click Check Syntax.
Click Save to finish.

 

Please mark it as the Best Answer if it helps you.

Thank You