archive in current and previous dates

Five Stars

archive in current and previous dates

i have a job that archive files saved in  current day .

in need to archive also files wich are saved in previous days 

the job is illustrate in picture 

any help Please

Moderator

Re: archive in current and previous dates

Hello,

Could you please give us some range of your previous days? It will return last month by using this expression:TalendDate.addDate(TalendDate.getCurrentDate(),"-1","MM"). This is also very easy in Talend with built-in functions.

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Five Stars

Re: archive in current and previous dates

hello ,

thanks for reply ,

i need to have all previous days and current day not days for the last month from the start day to now .

 

 

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog