I try to find a date on a form on the field startdatetime. The format of the field (element) is ‘dd-MM-yy’!
My find method looks like below:
controller.find();
startdatetime = ‘#’ + utils.dateFormat(globals.newDateTime, ‘dd-MM-yy’);
controller.search();
The error looks like:
Invalid input ‘17-11-03’, didn’t comply to the format ‘’
I now have two questions:
- Doing a find without format doesn’t work, this one neither while it works with a manual input! How come?
- What is the ‘’ at the end of the line?
Hope someone can help me here… BTW also without ‘#’ is doesn’t work…
Thanks