Sat2FriWhen this boolean property is true, holidays that fall on a Saturday are observed Friday. False by default.
Sun2MonWhen this boolean property is true, holidays that fall on a Sunday are observed Monday. True by default.
ASAP(opening,closing)Returns the soonest workday date and time (now, tomorrow morning, after the three-day weekend).
IsOpen(opening,closing)Returns true if the current moment falls between the given opening and closing times on a workday.
IsHoliday(dt)True if the given date is a holiday, false otherwise.
IsWorkday(dt)True if the given date is a workday, false otherwise.
NextWorkday(dt)Returns the first workday that follows the given date.
PrevWorkday(dt)Returns the first workday that precedes the given date.
NextNonWorkday(dt)Returns the first weekend or holiday that follows the given date.
PrevNonWorkday(dt)Returns the first weekend or holiday that precedes the given date.
NextHoliday(dt)Returns the first holiday that follows the given date.
PrevHoliday(dt)Returns the first holiday that precedes the given date.
Holiday(dt)If the given date is a holiday, this method will return its name.
| Holiday | Date |
| New Year's Day | January 1 (± 1 day, if observed) |
| Martin Luther King, Jr. Day | Third Monday in January |
| President's Day | Third Monday in February |
| Memorial Day | Last Monday in May |
| Independence Day | July 4 (± 1 day, if observed) |
| Labor Day | First Monday in September |
| Columbus Day | Second Monday in October |
| Veteran's Day | November 11 (±1 day, if observed) |
| Thanksgiving Day | Fourth Thursday in November |
| Christmas Day | December 25 (±1 day, if observed) |
<%Setcal=Server.CreateObject("USHolidays.WSC")Response.Write"Soonest your order can be processed: "&cal.ASAP(#8:00am#,#6:00pm#) %>
varcal=WScript.CreateObject('USHolidays.WSC');vardatearg=(newDate(WScript.Arguments.Named('date'))).getVarDate();varday=cal.Holiday(datearg);if(day)WScript.Echo('Happy '+day+'!');elseif(!cal.Workday(datearg))WScript.Echo('weekend');
useWin32::OLE;useWin32::OLE::NLS':DATE';my$cal=Win32::OLE->new('USHolidays.WSC');my$h=$cal->NextHoliday('2002-03-16');$window->document->write('<b>'.$h->Date(DATE_LONGDATE).'</b>: '.$cal->Holiday($h));
Download USHolidays.WSC to the web server (somewhere permanent, like a system directory).
Right-click the file and choose .