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
deepakMdeepakM 

validation rule for compare the current month in salesforce

hi every one 

 

i have one feild "closeddate__c".i need that Close Date not  to be earlier than current month.for that i used this 

CloseDate < TODAY()

 

but it dont allow the current mth also.As todaty is 8/29/2012 it not allow the   8/28/2012.

 

 

Please help me .

 

thanks

 

 

Best Answer chosen by Admin (Salesforce Developers) 
deepakMdeepakM

i got the solution 

 

MONTH(CloseDate) < MONTH(TODAY())