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
ARUL BERNARD I 6ARUL BERNARD I 6 

Time validation rule

I would like to create a validation rule to prevent a record from being saved if the time is after X.  I have attempted this, but I can't see where I can reference the current time.  Any ideas?


AND (
ISPICKVAL (  Status__c , "Submitted" ),
Due_Date__c  =  TODAY() ,
Current time  <=  4 pm 
)
sancasanca
Try this

AND (
ISPICKVAL (  Status__c , "Submitted" ),
Due_Date__c  =  TODAY() ,
NOW()  <=  4 pm 
)