Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NextWorkingDay including current day #35

Open
dotnetshadow opened this issue Apr 23, 2019 · 1 comment
Open

NextWorkingDay including current day #35

dotnetshadow opened this issue Apr 23, 2019 · 1 comment

Comments

@dotnetshadow
Copy link

dotnetshadow commented Apr 23, 2019

Great Library

I was wondering how you would go about solving the following issue.
Given a date, if it's a working day return it, else return the next working day.

EDIT I just looked at the source code, it seems NextWorkingDay should do exactly what I'm after.

I agree with the comment made here:
#5

Suggesting that an overload would be be needed to determine if we would like to include the current date in the check for NextWorkingDay

@Hrothval
Copy link
Contributor

I add "public DateTime NextWorkingDay(DateTime dt, int openDayAdd)", if openDayAdd is 1you don't have same day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants