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);
}