Date and time validations

chiragpathak
Tera Contributor

Hi Community,

I have a requirement where I have a date and time field (DD:MM:YYY HH:MM:SS) so I need to add validation to it in such a way that even the time should not be in the previous minute cause I am able to achieve validation on the date such that its not a previous date but if I select todays date but two hours ago it lets me select it where as it should not work like that it should clear the value on that field. As well as the showFieldMsg is not working its not showing the info message like "The selected date cannot be in the past".

1 ACCEPTED SOLUTION
5 REPLIES 5

palanikumar
Mega Sage

Are you trying it in Business Rule. Can you explain with the code you are using

Thank you,
Palani

Brian Lancaster
Tera Sage

J Siva
Tera Sage

Hi @chiragpathak 

Try the below ui policy.

Screenshot_20250610-202128.png

Note: Make sure to uncheck the "On load" check box.

Regards,

Siva