Hi,
This is similar to the topic: Calculate date base on input date and minutes or hour difference
–
You should look into the “webMethods Integration Server Built-In Services Reference” manual.
pub.date:compareDates
WmPublic
- Compares two dates and returns the result as an integer.
pub.datetime:increment
WmPublic
- Increments or decrements a date and time by a specified amount of time.
–
I suggest you try something like this pseudocode using FLOW (no Java needed):
newDate=startDate
WHILE (pub.date:compareDates(newDate,endDate) >= 0)
newDate=pub.datetime:increment(newDate,"1 day")
Happy coding