「ビジネスデー」は組織固有のものです。一部の組織は、他の組織が行う休暇には従事しません。 - 金曜日
# $date is input date
$nextBizDay = $date.adddays(1)
# You would probably want to generate the follow list programmatically,
# instead of manually as done here
$holidays = 1, <# New Years #>
18, <# MLK day 2016 #>
<# other holidays encoded as Day Of Year #>
360 <# Christmas in a Leap Year #>
# An alternative to a list of holidays like this is to find a web service
# you can query to get the holidays for a given year
while ($nextBizDay.DayOfWeek -eq 'Saturday' -or
$nextBizDay.DayOfWeek -eq 'Sunday' -or
$nextBizDay.DayOfYear -in $holidays) {
if ($nextBizDay.DayOfYear -gt 366) {
throw "No next business day this year. Need to add additional logic"
}
$nextBizDay = $nextBizDay.adddays(1)
}
あなたが月曜日意味:あなたは休日を処理したい場合は正しく、あなたは
が、これはそれを行う必要があります(理解するために思われるOP)フォーマットの詳細を省略するあなたのビジネスのための休日の明示的なリストが必要になります?あなたは休暇をどうやって働いていますか? –
これはあなたには役に立つかもしれません:https://www.reddit.com/r/PowerShell/comments/4j9usl/getdate_next_business_day/ –