Six Stars

HOW TO FETCH DATA

Hi experts,

How to get previous week data and previous months data using talend date functions

in tmap expression builder. 

and similarly how to get current months data and current weeks data 

the scenario is I want to show previous and current data comparision in a table.

 

Thanks in advance

 

 

 

 

1 REPLY
Moderator

Re: HOW TO FETCH DATA

Hello,

This is also very easy in Talend with built-in functions

TalendDate.getCurrentDate() returns the current date.
TalendDate.addDate(TalendDate.getCurrentDate(),"-1","MM") returns last month.

For your current weeks data requirement, could you please send an example for us?

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.