커뮤니티

문의드립니다

프로필 이미지
러블리
2023-07-19 15:54:24
1057
글번호 170763
답변완료
Input: ndate(20210830); Var: formular0(0), formular1(0), Formular2(0), formular3(0), formular4(0), Formular5(0), Formular6(0), Formular7(0), Formular8(0); var : idx(0),hh(0),ll(0),cc(0),cnt(0); if Bdate != Bdate[1] and Bdate >= ndate Then { ---------------------- 위식에서 특정일이후부터를 어제(전날)이후부터로 바꾸고 싶습니다 어떻게 해야 하나요?
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2023-07-20 15:25:25

안녕하세요 예스스탁입니다. 전일도 날짜를 직접 지정하셔야 합니다. 수식으로 휴일정보가 없어 정확히 지정이 가능하지 않습니다. 수식으로 가능하면 아래 정도로만 작성이 됩니다. 월요일이면 금요일, 화요일이면 월요일, 수요일이면 화요일같이 달력상 전일로만 가능합니다. 위와 같이 동작하셔도 무방하다면 아래식 이용하시면 됩니다. var : Tcond(False); if Bdate != Bdate[1] Then { if DayOfWeek(CurrentDate) == 1 and DateToJulian(sDate) >= DateToJulian(CurrentDate)-3 Then Condition1 = true; if DayOfWeek(CurrentDate) >= 2 and DateToJulian(sDate) >= DateToJulian(CurrentDate)-1 Then Tcond = true; } if Tcond == true Then { } 즐거운 하루되세요 > 러블리 님이 쓴 글입니다. > 제목 : 문의드립니다 > Input: ndate(20210830); Var: formular0(0), formular1(0), Formular2(0), formular3(0), formular4(0), Formular5(0), Formular6(0), Formular7(0), Formular8(0); var : idx(0),hh(0),ll(0),cc(0),cnt(0); if Bdate != Bdate[1] and Bdate >= ndate Then { ---------------------- 위식에서 특정일이후부터를 어제(전날)이후부터로 바꾸고 싶습니다 어떻게 해야 하나요?