arvindnsn
7 years agoContributor
Dynamic Looping to produce date based on input
Hello,
I have a requirement where my pipeline will take 2 input parameters (date type), Start_date and End_date. Based on the input date, i want to generate a list of dates as mentioned below.
Fo...
- 7 years ago
I’m attaching a pipeline that I think demonstrates what you’re looking for:
DateLoop_2019_04_17.slp (5.1 KB)
I used a Sequence snap to generate a document for each day and then use some of the Date arithmetic methods to build the desired values in a Mapper.
To compute the difference between the two dates, I used this expression library:
https://raw.githubusercontent.com/SnapLogic/contrib-elib/master/datetime.expr
If you use the library, you probably should download it from that link and place it in the project with the pipeline.