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
Rachuri LakshminarayanaRachuri Lakshminarayana 

DATE MUST BE A WEEKDAY IN VALIDATION RULE

NagendraNagendra (Salesforce Developers) 
Hi LakshmiNarayana,

May I request you please explain your requirement clearly so that we can look into it and can help you accordingly.

Also, try the below sample.
Validates that the value of a custom date field is a weekday (not Saturday or Sunday).
Formula:  CASE(MOD( My_Date__c - DATE(1900, 1, 7), 7), 0, 0, 6, 0, 1) = 0
Error Message:    Date must be a weekday.
Error Location:    My Date
Hope this helps.

Kindly mark this as solved if the reply was helpful.

Thanks,
Nagendra