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

javascript validation rule on date field ?

i want one validation rule like, there two fields is there 
1. Start Date  2. End date,  when useer enter start today and end date should be with in next 90 days only , if end date user select more then 90 days of the start date will get error message.
can you please hel me.

Your Validation rule condition should look something like this,
End_Date__c - Start_Date__c > 90

Put your desired message which you want to show on the screen in the Error Message field.