I have a date field called "Next_Visit_Date__c" Now I want to write validation my next visit is only the last friday of each month if I take any date other than last fire on every month validation has to fire. I tried with the below but it is not working
AND(
WEEKDAY(Next_Appointment_Date) = 6,
MONTH(Next_Appointment_Date) = MONTH(TODAY()),
DAY(Next_Appointment_Date) > 23,
DAY(Next_Appointment_Date) <= 31
)
Can anyone help on this to write a validation rule