How to get a yesterday's date with "TalendDate.getdate" statement

One Star

How to get a yesterday's date with "TalendDate.getdate" statement

Hi,
I would like to get a yesterday's date in job like following.
TalendDate.getDate("YYYYMMDD") - 1
How should I do for realizing like this case?
Thanks!
Regards,
Community Manager

Re: How to get a yesterday's date with "TalendDate.getdate" statement

Hi
Try
TalendDate.addDate(TalendDate.getCurrentDate(),-1,"dd")
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Agile Data lakes & Analytics

Accelerate your data lake projects with an agile approach

Watch

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch