FitNesse For Appian: Populating Date field

 Hi everyone, i'm fairly new to Appian and FitNesse. I came across a situation where I cannot find a way to correctly populate a Date field when running the test scripts on FitNesse.

This is part of the decision table for the test:

!define TODAY {!today (MM-dd-yyyy) }
!*** Test
|script|
|click on menu|Tasks|
|click on task|Set date and objects|
|accept task|
|populate field|Start Date|with|${TODAY}|
|populate field|End Date|with|2019-04-26|

Most of the times I get the following error (using the variable TODAY):

2018-04-26 15:20:58,817 [main] DEBUG com.appiancorp.ps.automatedtest.tempo.interfaces.TempoDateField  - POPULATION [04-26-2018]
2018-04-26 15:20:58,818 [main] ERROR com.appiancorp.ps.automatedtest.exception.ExceptionBuilder  - Populate Field - End Date - 04-26-2018
java.text.ParseException: Unable to parse the date: 04-26-2018

And in the second case (writing the date in format yyyy-mm-dd) I get no Java errors but in the Appian interface there's a validation on the date field format which doesn't allow me to continue if it isn't MM-dd-yyyy.
So far I haven't been able to find a working format, so thank you in advance to anyone that has any insight on the topic.

  Discussion posts and replies are publicly visible