Skip to main content

Calculate date

Calculates date by adding or subtracting from a date.

Common use cases

  • Data manipulation

Category

  • Date & Time

Inputs (what you have)

NAMEDESCRIPTIONTYPEREQUIREDEXAMPLE
Reference dateThe date on which the calculation is basedDateYes2022-05-25
OperationThe operation to be performed to the reference date.Note: At least one optional input should be enteredAccepted values:AddSubtractPredefinedChoice ListYesAdd
InclusionChoose whether to include or exclude weekends from the calculation.Accepted values:Exclude weekendsInclude weekendsPredefinedChoice ListYesInclude weekends
YearsYears to be added or subtracted from reference dateIntegerNo2
MonthsMonths to be added or subtracted from reference dateIntegerNo3
WeeksWeeks to be added or subtracted from reference dateIntegerNo1
DaysDays to be added or subtracted from reference dateIntegerNo1

Note: the value of inputs can either be a set value in the configuration of the Wrk Action within the Wrkflow, or a variable from the Data Library. These variables in the Data Library section are the outputs of previous Wrk Actions in the Wrkflow.

Outputs (what you get)

NAMEDESCRIPTIONTYPEREQUIREDEXAMPLE
Result weekdayThe result weekday based on calculationTextYesMonday
Result dateThe result date based on calculationDateYes2024-08-26

Outcomes

NAMEDESCRIPTION
SuccessThis status is selected if the date was correctly calculated.
UnsuccessfulThis status is selected in the event of the following scenarios:- The instructions cannot be followed- All optional inputs were left blank

Requirements

  • N/A

How it works

  • Reference date: January 13, 2022, Days: 6, the result weekday is Wednesday and calculated date is 19-Jan-2022.
  • Reference date: January 13, 2022, Days: 6, Inclusion: Exclude weekends, the result weekday is Friday and calculated date is 21-Jan-2022.