Home      Ask a Question      My Stuff      Help   
  
TimeWorks Plus: Scripting a change to a Punch Based on the Day Before or Day After a Holiday
Note this only works in TimeWorks Plus. What the script does is confirms that the day it is on is the day before the holiday OR the day after and so we can then script off of this based on its findings:

- To do something on the day after a holiday:

reportingdate.isholiday(reportingdate.date - 1)

- To do something on the day before a holiday:

reportingdate.isholiday(reportingdate.date + 1)


You could then verify if it is this day using something like for the day before a holiday:

if (reportingdate.isholiday(reportingdate.date - 1) = 1){
category = "Holiday";
}
ID
1250
Category
<Unassigned>
Date Created
7/11/2014 1:05:15 PM
Date Updated
2/17/2016 12:41:16 PM
Back to Search Results