Configuring 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
It is easy to use the setDate routine, along with a tJava component to change the year of the current date, for example:
System.out.println(TalendDate.formatDate("yyyy/MM/dd HH:mm:ss",new Date()));
System.out.println(TalendDate.setDate(new Date(),2011,"yyyy"));

The current date, followed by the new date are displayed in the Run view: