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