5
$\begingroup$

I can easily add business days to a given date,

future = DatePlus[Today, {9, "BusinessDay"}]

Is there some way to measure the business days between two dates? In other words, a version of

DateDifference[Today, future]

that returns 9 BusinessDays instead of 13 days?

$\endgroup$
  • 5
    $\begingroup$ Try DayCount[Today, future, "BusinessDay"]. $\endgroup$ – Carl Woll Sep 12 '17 at 17:25
8
$\begingroup$

Use DayCount:

?DayCount

DayCount[Subscript[date, 1],Subscript[date, 2]] gives the number of days from Subscript[date, 1] to Subscript[date, 2]. DayCount[Subscript[date, 1],Subscript[date, 2],daytype] gives the number of days of the specified daytype from Subscript[date, 1] to Subscript[date, 2]. >>

For your example:

future = DatePlus[Today, {9, "BusinessDay"}];

DayCount[Today, future, "BusinessDay"]

9

| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.