How can I compare two DatePicker inputs?

0
I have two DatePickers here, ‘StartDate’ and ‘FinishDate’. I want to add custom validation when ‘finishDate’ is selected, than it can’t be earlier than the ‘StartDate’ input. So, I added $value > $currentObject/StartDate   However, it makes an error. Funny thing is it works in a right way, but still makes an error. An error occurred while validating current value in MyFirstModule.MyEntity.datePicker2: Operator > not supported in expression >(, ) Error: An error occurred while validating current value in MyFirstModule.MyEntity.datePicker2: Operator > not supported in expression >(, ) at http://localhost:8080/mxclientsystem/mxui/mxui.js?638111245793723072:68:141152 at http://localhost:8080/mxclientsystem/mxui/mxui.js?638111245793723072:68:141278 at http://localhost:8080/mxclientsystem/mxui/mxui.js?638111245793723072:68:141285 at ce (http://localhost:8080/mxclientsystem/mxui/mxui.js?638111245793723072:24:5210) at e.computeValue (http://localhost:8080/mxclientsystem/mxui/mxui.js?638111245793723072:24:11479) at e.trackAndCompute (http://localhost:8080/mxclientsystem/mxui/mxui.js?638111245793723072:24:11305) at e.get (http://localhost:8080/mxclientsystem/mxui/mxui.js?638111245793723072:24:10363) at oe (http://localhost:8080/mxclientsystem/mxui/mxui.js?638111245793723072:24:4664) at e.get (http://localhost:8080/mxclientsystem/mxui/mxui.js?638111245793723072:24:10348) at oe (http://localhost:8080/mxclientsystem/mxui/mxui.js?638111245793723072:24:4664) Is it a wrong expression?  
asked
1 answers
1

Hi Jihyo,

 

It is not supported. Here is the way how to validate it:

1). Create an on change event on the end data field:

 

2). The Nanoflow can do the validation:

 

If the end date is before the start date you can show a message:

 

Go make it

 

answered