Description
Parse previousDate and repeatDate as real Gregorian dates, require repeat no earlier, and return the day difference.
Marketing records combine campaign dates, labels, attribution terms, and supplied counts. A local arithmetic or formatting result describes the stated record without proving campaign effectiveness or causal impact.
Parse previousDate and repeatDate as real Gregorian dates, require repeat no earlier, and return the day difference.
When to use this tool
Use Customer Repeat Purchase Gap when you need one campaign-record calculation or formatter under the stated convention.
How to use the tool and how it works
- Enter previousDate, repeatDate. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read gapDays. Use the output convention below.
Parse previousDate and repeatDate as real Gregorian dates, require repeat no earlier, and return the day difference.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| previousDate | Previous Date | Required. Text; maximum UTF-16 length 8192. |
| repeatDate | Repeat Date | Required. Text; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| gapDays | Gap Days | Required. Safe integer. |
{
"input": {
"previousDate": "2026-10-01",
"repeatDate": "2026-10-15"
},
"output": {
"gapDays": 14
}
} Limitations and assumptions
- This compares supplied purchase dates without customer identity, returns, order validity, timezone, or causal retention analysis.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
Alternative or Complementary methods
Review the complete measurement model, source data, and campaign terms before interpreting a performance result.
References
Similar or alternative tools
- Program Rerun Status Label
Mark rerun for a strictly later date and label it later airing or original-date airing.
- Work Item Ageing Band
Select the last bound no greater than nonnegative ageDays.