Add validation difference between two date and time should not more than 24 hrs

Certified Associate Developer

Hi All,

Need your help in the following issue:

Please how can I get the difference  between two dates should not more than 24 hrs? 

For example 1 :

Start Date = 7/1/2024 12:00 AM EST

End Date = 7/1/2024 11:59 PM PST

if user enter the above dates and time than Don’t allow to select since the difference is > 24 hours

Thank you in advance for your help!

  Discussion posts and replies are publicly visible