Date form field default value throws Exception


#1

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:formData
<camunda:formField id=“dueDate” label=“dueDate” type=“date” defaultValue=“2019-01-23T13:42:42”>
camunda:properties
<camunda:property id=“datePattern” value=“yyyy-MM-dd’T’HH:mm:ss” />
</camunda:properties>
</camunda:formField>
</camunda:formData>

It doesn’t help. What am I missing?

Thanks!


#2

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