Date type in generated form

I pass a date in ISO format eg “2018-02-01T00:00:00.000+0000” when I start a process using the API. This successfully results in a joda DateTime type variable being available.

But I want to then use that DateTime object to set a default value in a generated form. So I believe I need to use an expression that converts the DateTime to a string of form 01/02/2018.

How do I go about this?

Thanks

Tom

We use momentJS to format Dates in the Webapps. You can use the library to specify your desired output format.

https://momentjs.com/docs/#/parsing/string-format/