Date form field default value throws Exception


Hi all,

I have a form field of type date. And I have provided default value for this date. When I try to retrieve task form data I get the following exception.

org.camunda.bpm.engine.ProcessEngineException: invalid date value 2019-01-23T13:42:42

I tried giving the dates in formats “yyyy-MM-dd’T’HH:mm:ss” and "dd/MM/yyyy, and also tried specifying datePattern as follows.
<camunda:formField id=“dueDate” label=“dueDate” type=“date” defaultValue=“2019-01-23T13:42:42”>
<camunda:property id=“datePattern” value=“yyyy-MM-dd’T’HH:mm:ss” />

It doesn’t help. What am I missing?



You need to share the complete stacktrace of the exception.
Have you tried to specify the datePattern within the specific form field?