휴일에 따라 다른 경로를 사용하는 흐름을 만들려면 어떻게 해야 합니까?

이 예에서는 추수감사절 휴일을 사용합니다.

  • 11월의 네 번째 목요일을 얻으려면: GetDayOfWeekOccurrence(5, 4, 연도(GetCurrentDateTimeUtc()), 11)
  • 추수 감사절 다음 날을 얻으려면(항상 네 번째 금요일이 아닐 수도 있음): AddDays(GetDayOfWeekOccurrence(5, 4, 연도(GetCurrentDateTimeUtc()), 11), 1)
  • 오늘이 지정된 날짜와 같은 날인지 확인하려면 다음을 수행합니다.
    1. 지정된 날짜를 Task.thanksgiving과 같은 날짜/시간 변수로 저장합니다. 
    2. 결정 액션을 사용하여 오늘의 년, 월, 일을 Task.thanksgiving과 비교하십시오.  필요한 경우 시간/분을 확인할 수도 있습니다.

자세한 내용은 다운로드 및 가져오기 추수감사절 일정 예 건축가로.

휴일 계산
설날 MakeDateTime(연도(GetCurrentDateTimeUtc()), 1, 1)
마틴 루터 킹 주니어 일 GetDayOfWeekOccurrence(2, 3, 연도(GetCurrentDateTimeUtc()), 1)
그라운드호그 데이 MakeDateTime(연도(GetCurrentDateTimeUtc()), 2, 2) 
대통령의 날 GetDayOfWeekOccurrence(2, 3, 연도(GetCurrentDateTimeUtc()), 2)
일광 절약 시간의 시작 GetDayOfWeekOccurrence(1, 2, 연도(GetCurrentDateTimeUtc()), 3, 2, 0, 0)
부활절 계산할 수 없습니다. 목록을 사용하세요.
납세일(대략적인 만 – IRS가 날짜를 변경할 수 있음) MakeDateTime(연도(GetCurrentDateTimeUtc()), 4, 15)
어머니의 날 GetDayOfWeekOccurrence(1, 2, 연도(GetCurrentDateTimeUtc()), 5)
기념일 GetDayOfWeekOccurrence(2, -1, 연도(GetCurrentDateTimeUtc()), 5)
아버지의 날 GetDayOfWeekOccurrence(1, 3, 연도(GetCurrentDateTimeUtc()), 6)
독립 기념일  MakeDateTime(연도(GetCurrentDateTimeUtc()), 7, 4)
노동절 GetDayOfWeekOccurrence(2, 1, 연도(GetCurrentDateTimeUtc()), 9)
할로윈 MakeDateTime(연도(GetCurrentDateTimeUtc()), 10, 31)
일광 절약 시간 종료 GetDayOfWeekOccurrence(1, 1, 연도(GetCurrentDateTimeUtc()), 11, 2, 0, 0)
선거일 AddDays(GetDayOfWeekOccurrence(2, 1, 연도(GetCurrentDateTimeUtc()), 11), 1)
재향 군인의 날 MakeDateTime(연도(GetCurrentDateTimeUtc()), 11, 11)
추수감사절 GetDayOfWeekOccurrence(5, 4, 연도(GetCurrentDateTimeUtc()), 11)
검은 금요일 AddDays(GetDayOfWeekOccurrence(5, 4, 연도(GetCurrentDateTimeUtc()), 11), 1)
사이버 월요일 AddDays(GetDayOfWeekOccurrence(5, 4, 연도(GetCurrentDateTimeUtc()), 11), 4)
크리스마스 이브 MakeDateTime(연도(GetCurrentDateTimeUtc()), 12, 24)
크리스마스 날 MakeDateTime(연도(GetCurrentDateTimeUtc()), 12, 25)
새해 전날 MakeDateTime(연도(GetCurrentDateTimeUtc()), 12, 31)

*주로 미국 공휴일의 예