Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


cdevine
2017-04-17T13:29:03Z
We have a list of Holidays that support disabling jobs on weekends and holidays. I would like to create a condition such that certain jobs do not run if the prior day was not a business day. Is there a way for the Condition (>net process I am assuming) to access the TimeExceptions to determine if the prior day was a weekend using similar code to below.

public static bool IsBusinessDay()
{
DateTime curDate = new DateTime();
if (curDate.DayOfWeek == DayOfWeek.Sunday || curDate.DayOfWeek == DayOfWeek.Saturday)
{
return (true);
}
return (false);
}
Sponsor
Forum information
Scroll to Top