How to format a Date - 6.5

Talend Data Integration Studio User Guide

EnrichVersion
6.5
EnrichProdName
Talend Data Integration
task
Design and Development
EnrichPlatform
Talend Studio

The formatDate routine is easy to use, along with a tJava component:

System.out.println(TalendDate.formatDate("dd-MM-yyyy", new Date()));

The current date is initialized according to the pattern specified by the new Date() Java function and is displayed in the Run view: