How can I validate begin date and end date?

  • 18 October 2018
  • 3 replies
  • 6 views

Badge +2

I have a form that has a begin date field and an end date field.  How can I validate it so that the end date cannot be prior to the begin date.  I already tried applying the following to the end date field and it didn't work.  lessthan(beginDate)

Thanks for your help.


3 replies

Badge +5

Hi Tina Sikes‌,

Have you checked out this How can a validate date and time thread?

Userlevel 4
Badge +12

Hi Tina,

open the properties of your endDate control and expand the Validation section.

Now select the following options:

Compare To: Control

Compare operator: Greater than

Control to compare: BeginDate

and set a validation message.

219647_pastedImage_4.png

Save your properties and your validation should work.

219648_pastedImage_5.png

Best regards

Enrico

Badge +2

Thank you Adam.  That worked.  I wonder why lessthan(beginDate) didn't work.  Isn't it basically the same as <

Reply