Solved

How to keep adding months to today's date?

  • 12 September 2019
  • 5 replies
  • 4 views

Badge

Hi, how do I keep adding records (In red) until I hit 2025 - 12 - 12?

Thanks in advance!

icon

Best answer by daveatsafe 12 September 2019, 18:55

View original

5 replies

Userlevel 2
Badge +17

Hi @trungn1993,

You can use a DateTimeCalculator transformer to calculate the number of days between today and 2025-12-12, then another one to calculate the date for each of those days:

Badge

I figured it out.

 

 

First, I used a cloner:

 

And then used DateTimeCalculator for both Next_Month & Today_Date

 

Final Output:

Badge

Hi @trungn1993,

You can use a DateTimeCalculator transformer to calculate the number of days between today and 2025-12-12, then another one to calculate the date for each of those days:

I just posted my solution too :) Thanks @daveatsafe anyways

Badge +4

I'm not gonna ask why, and rather just give one solution. But I do advice to calculate these values on the fly, and not create a lot of dead lookup data. Its a big performance killer.

 

 

Here is a Python Creator example:pyc.txt

 

 

Badge

I'm not gonna ask why, and rather just give one solution. But I do advice to calculate these values on the fly, and not create a lot of dead lookup data. Its a big performance killer.

 

 

Here is a Python Creator example:pyc.txt

 

 

Thanks, nothing beats Python when it comes to performance!

Reply