Configuring a Date - Cloud - 7.3

Talend Studio User Guide

Version
Cloud
7.3
Language
English
Product
Talend Big Data
Talend Big Data Platform
Talend Cloud
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
Design and Development
Last publication date
2024-02-13
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: