Formatting a Date - 7.1

Talend Real-time Big Data Platform Studio User Guide

Version
7.1
Language
English (United States)
Product
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
Design and Development

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: