Calculated Attributes - Function to Add days to a given date | Community
Skip to main content
Level 2
July 18, 2025
Solved

Calculated Attributes - Function to Add days to a given date

  • July 18, 2025
  • 1 reply
  • 257 views

Is there a function available in AEP  Calculated Fields  section, to add number of days to a given date ?
Currently found a manual workaround to fetch the date parts and convert a date into epoch timestamp and then add days to it. this process is complex and  lengthy. IS there a  function which I can leverage in calculated fields section  in AEP ?

Best answer by KumarRishii
As per my Knowledge , AEP Calculated Fields do not support a built-in addDays() function. Currently, the only option is to manually convert the date to epoch, add days, and convert back—which is complex. Simpler date functions like addDays() are available in Adobe Journey Optimizer, but not in AEP Data Prep.
 
For now, you'll need to continue with the manual method or handle date arithmetic in downstream systems.

1 reply

KumarRishii
KumarRishiiAccepted solution
Level 5
July 19, 2025
As per my Knowledge , AEP Calculated Fields do not support a built-in addDays() function. Currently, the only option is to manually convert the date to epoch, add days, and convert back—which is complex. Simpler date functions like addDays() are available in Adobe Journey Optimizer, but not in AEP Data Prep.
 
For now, you'll need to continue with the manual method or handle date arithmetic in downstream systems.